| # Copyright 2019 The Fuchsia Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//build/bind/bind.gni") |
| import("//build/config/fuchsia/rules.gni") |
| |
| bind_rules("as370_audio_in_bind") { |
| rules = "as370_audio_in.bind" |
| output = "as370_audio_in_bind.h" |
| tests = "tests.json" |
| deps = [ "//src/devices/bind/fuchsia.synaptics.platform" ] |
| } |
| |
| driver_module("as370-pdm-input") { |
| configs += [ |
| "//build/config:all_source", |
| "//build/config/fuchsia:enable_zircon_asserts", |
| ] |
| configs += [ "//build/unification/config:zircon-migrated" ] |
| sources = [ "audio-stream-in.cc" ] |
| |
| deps = [ |
| ":as370_audio_in_bind", |
| "//sdk/banjo/fuchsia.hardware.clock", |
| "//sdk/banjo/fuchsia.hardware.platform.device", |
| "//sdk/banjo/fuchsia.hardware.shareddma", |
| "//src/devices/bus/lib/device-protocol-pdev", |
| "//src/devices/i2c/lib/device-protocol-i2c-channel", |
| "//src/devices/lib/as370", |
| "//src/devices/lib/driver", |
| "//src/devices/lib/mmio", |
| "//src/lib/ddk", |
| |
| # TODO(fxb/38132): Migrate to the new bind rules and delete the below |
| "//src/lib/ddk:ddk-deprecated-binding-headers", |
| "//src/lib/ddktl", |
| "//src/media/audio/lib/simple-audio-stream", |
| "//zircon/public/lib/fbl", |
| "//zircon/public/lib/hwreg", |
| "//zircon/public/lib/sync", |
| "//zircon/public/lib/zircon-internal", |
| "//zircon/public/lib/zx", |
| "//zircon/system/ulib/audio-driver-proto", |
| "//zircon/system/ulib/audio-proto-utils", |
| "//zircon/system/ulib/fzl", |
| ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ ":as370_audio_in_bind_test" ] |
| } |