Skip to content

Commit 506ecbc

Browse files
committed
Merge branch 'topic/hda' into for-linus
2 parents aa5c14d + 0e7adbe commit 506ecbc

21 files changed

Lines changed: 2837 additions & 2239 deletions

‎Documentation/sound/alsa/HD-Audio.txt‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,11 @@ dead. However, this detection isn't perfect on some devices. In such
5757
a case, you can change the default method via `position_fix` option.
5858

5959
`position_fix=1` means to use LPIB method explicitly.
60-
`position_fix=2` means to use the position-buffer. 0 is the default
61-
value, the automatic check and fallback to LPIB as described in the
62-
above. If you get a problem of repeated sounds, this option might
60+
`position_fix=2` means to use the position-buffer.
61+
`position_fix=3` means to use a combination of both methods, needed
62+
for some VIA and ATI controllers. 0 is the default value for all other
63+
controllers, the automatic check and fallback to LPIB as described in
64+
the above. If you get a problem of repeated sounds, this option might
6365
help.
6466

6567
In addition to that, every controller is known to be broken regarding

‎include/sound/tlv.h‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,11 @@
3838
#define SNDRV_CTL_TLVT_DB_MINMAX 4 /* dB scale with min/max */
3939
#define SNDRV_CTL_TLVT_DB_MINMAX_MUTE 5 /* dB scale with min/max with mute */
4040

41+
#define TLV_DB_SCALE_MASK 0xffff
42+
#define TLV_DB_SCALE_MUTE 0x10000
4143
#define TLV_DB_SCALE_ITEM(min, step, mute) \
4244
SNDRV_CTL_TLVT_DB_SCALE, 2 * sizeof(unsigned int), \
43-
(min), ((step) & 0xffff) | ((mute) ? 0x10000 : 0)
45+
(min), ((step) & TLV_DB_SCALE_MASK) | ((mute) ? TLV_DB_SCALE_MUTE : 0)
4446
#define DECLARE_TLV_DB_SCALE(name, min, step, mute) \
4547
unsigned int name[] = { TLV_DB_SCALE_ITEM(min, step, mute) }
4648

‎sound/pci/hda/Kconfig‎

Lines changed: 6 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -119,47 +119,20 @@ config SND_HDA_CODEC_VIA
119119
snd-hda-codec-via.
120120
This module is automatically loaded at probing.
121121

122-
config SND_HDA_CODEC_ATIHDMI
123-
bool "Build ATI HDMI HD-audio codec support"
124-
default y
125-
help
126-
Say Y here to include ATI HDMI HD-audio codec support in
127-
snd-hda-intel driver, such as ATI RS600 HDMI.
128-
129-
When the HD-audio driver is built as a module, the codec
130-
support code is also built as another module,
131-
snd-hda-codec-atihdmi.
132-
This module is automatically loaded at probing.
133-
134-
config SND_HDA_CODEC_NVHDMI
135-
bool "Build NVIDIA HDMI HD-audio codec support"
136-
default y
137-
help
138-
Say Y here to include NVIDIA HDMI HD-audio codec support in
139-
snd-hda-intel driver, such as NVIDIA MCP78 HDMI.
140-
141-
When the HD-audio driver is built as a module, the codec
142-
support code is also built as another module,
143-
snd-hda-codec-nvhdmi.
144-
This module is automatically loaded at probing.
145-
146-
config SND_HDA_CODEC_INTELHDMI
147-
bool "Build INTEL HDMI HD-audio codec support"
122+
config SND_HDA_CODEC_HDMI
123+
bool "Build HDMI/DisplayPort HD-audio codec support"
148124
select SND_DYNAMIC_MINORS
149125
default y
150126
help
151-
Say Y here to include INTEL HDMI HD-audio codec support in
152-
snd-hda-intel driver, such as Eaglelake integrated HDMI.
127+
Say Y here to include HDMI and DisplayPort HD-audio codec
128+
support in snd-hda-intel driver. This includes all AMD/ATI,
129+
Intel and Nvidia HDMI/DisplayPort codecs.
153130

154131
When the HD-audio driver is built as a module, the codec
155132
support code is also built as another module,
156-
snd-hda-codec-intelhdmi.
133+
snd-hda-codec-hdmi.
157134
This module is automatically loaded at probing.
158135

159-
config SND_HDA_ELD
160-
def_bool y
161-
depends on SND_HDA_CODEC_INTELHDMI || SND_HDA_CODEC_NVHDMI
162-
163136
config SND_HDA_CODEC_CIRRUS
164137
bool "Build Cirrus Logic codec support"
165138
depends on SND_HDA_INTEL

‎sound/pci/hda/Makefile‎

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ snd-hda-intel-objs := hda_intel.o
33
snd-hda-codec-y := hda_codec.o
44
snd-hda-codec-$(CONFIG_SND_HDA_GENERIC) += hda_generic.o
55
snd-hda-codec-$(CONFIG_PROC_FS) += hda_proc.o
6-
snd-hda-codec-$(CONFIG_SND_HDA_ELD) += hda_eld.o
76
snd-hda-codec-$(CONFIG_SND_HDA_HWDEP) += hda_hwdep.o
87
snd-hda-codec-$(CONFIG_SND_HDA_INPUT_BEEP) += hda_beep.o
98

@@ -12,13 +11,11 @@ snd-hda-codec-cmedia-objs := patch_cmedia.o
1211
snd-hda-codec-analog-objs := patch_analog.o
1312
snd-hda-codec-idt-objs := patch_sigmatel.o
1413
snd-hda-codec-si3054-objs := patch_si3054.o
15-
snd-hda-codec-atihdmi-objs := patch_atihdmi.o
1614
snd-hda-codec-cirrus-objs := patch_cirrus.o
1715
snd-hda-codec-ca0110-objs := patch_ca0110.o
1816
snd-hda-codec-conexant-objs := patch_conexant.o
1917
snd-hda-codec-via-objs := patch_via.o
20-
snd-hda-codec-nvhdmi-objs := patch_nvhdmi.o
21-
snd-hda-codec-intelhdmi-objs := patch_intelhdmi.o
18+
snd-hda-codec-hdmi-objs := patch_hdmi.o hda_eld.o
2219

2320
# common driver
2421
obj-$(CONFIG_SND_HDA_INTEL) := snd-hda-codec.o
@@ -39,9 +36,6 @@ endif
3936
ifdef CONFIG_SND_HDA_CODEC_SI3054
4037
obj-$(CONFIG_SND_HDA_INTEL) += snd-hda-codec-si3054.o
4138
endif
42-
ifdef CONFIG_SND_HDA_CODEC_ATIHDMI
43-
obj-$(CONFIG_SND_HDA_INTEL) += snd-hda-codec-atihdmi.o
44-
endif
4539
ifdef CONFIG_SND_HDA_CODEC_CIRRUS
4640
obj-$(CONFIG_SND_HDA_INTEL) += snd-hda-codec-cirrus.o
4741
endif
@@ -54,11 +48,8 @@ endif
5448
ifdef CONFIG_SND_HDA_CODEC_VIA
5549
obj-$(CONFIG_SND_HDA_INTEL) += snd-hda-codec-via.o
5650
endif
57-
ifdef CONFIG_SND_HDA_CODEC_NVHDMI
58-
obj-$(CONFIG_SND_HDA_INTEL) += snd-hda-codec-nvhdmi.o
59-
endif
60-
ifdef CONFIG_SND_HDA_CODEC_INTELHDMI
61-
obj-$(CONFIG_SND_HDA_INTEL) += snd-hda-codec-intelhdmi.o
51+
ifdef CONFIG_SND_HDA_CODEC_HDMI
52+
obj-$(CONFIG_SND_HDA_INTEL) += snd-hda-codec-hdmi.o
6253
endif
6354

6455
# this must be the last entry after codec drivers;

0 commit comments

Comments
 (0)