Skip to content

Commit d64ae9d

Browse files
committed
[dm][audio] support Intel HDA
make DM import in audio easier Signed-off-by: GuEe-GUI <2991707448@qq.com>
1 parent 999ab6c commit d64ae9d

3 files changed

Lines changed: 1997 additions & 3 deletions

File tree

components/drivers/audio/Kconfig

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
config RT_USING_AUDIO
1+
menuconfig RT_USING_AUDIO
22
bool "Using Audio device drivers"
33
default n
44

@@ -16,3 +16,14 @@ config RT_USING_AUDIO
1616
default 2048
1717

1818
endif
19+
20+
config RT_AUDIO_INTEL_HDA
21+
bool "Enable Intel High Definition Audio"
22+
depends on RT_USING_DM
23+
depends on RT_USING_AUDIO
24+
depends on RT_USING_PCI
25+
default n
26+
27+
if RT_USING_DM && RT_USING_AUDIO
28+
osource "$(SOC_DM_AUDIO_DIR)/Kconfig"
29+
endif

components/drivers/audio/SConscript

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
from building import *
22

33
cwd = GetCurrentDir()
4-
src = Glob('*.c')
5-
CPPPATH = [cwd]
4+
CPPPATH = [cwd, cwd + '/../include']
5+
6+
src = ['dev_audio.c', 'dev_audio_pipe.c']
7+
8+
if GetDepend(['RT_AUDIO_INTEL_HDA']):
9+
src += ['audio-hda.c']
610

711
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_AUDIO'], CPPPATH = CPPPATH)
812

0 commit comments

Comments
 (0)