remarkable-linux/sound/pci/hda
Nicolas Boichat 536319afd1 ALSA: Allow to force model to intel-mac-v3 in snd_hda_intel (sigmatel).
Currently, even if you pass model=intel-mac-v3 as a module parameter to
snd_hda_intel, the function patch_stac922x (patch_sigmatel.c) will still
try to auto-detect the model type. This is a problem on my MacBook Pro 1st
generation, which needs intel-mac-v3, but sometimes incorrectly reports
0x00000100 as subsystem id, which causes the switch in patch_stac922x to
select intel-mac-v4.

To fix this, I added a new model called intel-mac-auto, so in case no
module parameter is passed, and an Intel Mac board is detected, the
model will be automatically detected, while no detection will be done
if the model is forced to intel-mac-v3.

This problem has been around for quite a while, and I used to fix it
by moving the case statement for 0x00000100 in patch_stac922x so that
intel-mac-v3 is chosen.

Another way to fix the problem would be to check if a module parameter
was set directly in patch_stac922x, using something like this:
if (spec->board_config == STAC_INTEL_MAC_V3 &&
	!codec->bus->modelname) {

But I think it is less elegant (if you prefer that way, I can prepare a
patch).

Signed-off-by: Nicolas Boichat <nicolas@boichat.ch>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2008-07-27 10:22:27 +02:00
..
hda_codec.c [ALSA] Replace CONFIG_SND_DEBUG_DETECT with CONFIG_SND_DEBUG_VERBOSE 2008-05-27 15:56:21 +02:00
hda_codec.h ALSA: hda - Fix digital converter proc output 2008-06-20 14:16:01 +02:00
hda_generic.c [ALSA] hda-codec - keep the format verb at closing PCM streams 2008-04-24 12:00:26 +02:00
hda_hwdep.c [ALSA] Replace CONFIG_SND_DEBUG_DETECT with CONFIG_SND_DEBUG_VERBOSE 2008-05-27 15:56:21 +02:00
hda_intel.c ALSA: hda - Align BDL position adjustment parameter 2008-07-16 12:03:24 +02:00
hda_local.h [ALSA] Move vmaster code to sound core 2008-04-24 12:00:12 +02:00
hda_patch.h [ALSA] sound: hda: missing includes of hda_patch.h 2008-04-24 12:00:19 +02:00
hda_proc.c ALSA: hda - Fix digital converter proc output 2008-06-20 14:16:01 +02:00
Makefile [ALSA] Keep private TLV entry in vmaster itself 2008-04-24 12:00:12 +02:00
patch_analog.c ALSA: hda - Add missing Thinkpad Z60m support 2008-07-10 09:31:58 +02:00
patch_atihdmi.c [ALSA] sound: hda: missing includes of hda_patch.h 2008-04-24 12:00:19 +02:00
patch_cmedia.c [ALSA] hda - Fix model for LG LS75 laptop 2008-05-30 16:56:00 +02:00
patch_conexant.c ALSA: hda - Fix FSC V5505 model 2008-07-14 09:00:51 +02:00
patch_realtek.c ALSA: hda - Add automatic model setting for the Acer Aspire 5920G laptop 2008-07-27 10:22:26 +02:00
patch_si3054.c [ALSA] sound: hda: missing includes of hda_patch.h 2008-04-24 12:00:19 +02:00
patch_sigmatel.c ALSA: Allow to force model to intel-mac-v3 in snd_hda_intel (sigmatel). 2008-07-27 10:22:27 +02:00
patch_via.c [ALSA] hda - Fix noise on VT1708 codec 2008-05-24 18:23:35 +02:00