ALSA updates (#3)
Linus,
please pull yet another ALSA updates for 2.6.28 from:
git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6.git for-linus
This contains mostly build error/warning fixes, in addition to one unbalanced lock fix for the new us122l driver, and updates of Realtek codec support.
Thanks!
Takashi
===
Arun KS (1):
ALSA: ASoC: Fix compile-time warning for tlv320aic23.c
Kailang Yang (6):
ALSA: hda - Add auto mic switch in realtek auto-probe mode
ALSA: hda - Fix PCI SSID of ASUS M90V
ALSA: hda - Add ALC1200 support
ALSA: hda - Add ALC887 support
ALSA: hda - Add support of ALC272
ALSA: hda - Fix quirk lists for realtek codecs
Li Zefan (1):
ALSA: us122l: fix missing unlock in usb_stream_hwdep_vm_fault()
Marc Zyngier (1):
ALSA: Fix pxa2xx-ac97-lib.c compilation
Mark Brown (1):
ALSA: ASoC: Hide TLV320AIC26 configuration option for non-OpenFirwmare users
Matthew Ranostay (1):
ALSA: hda: fix nid variable warning
sound/arm/pxa2xx-ac97-lib.c | 12 +++--- sound/pci/hda/patch_realtek.c | 88 +++++++++++++++++++++++++++++++--------- sound/pci/hda/patch_sigmatel.c | 2 +- sound/soc/codecs/Kconfig | 2 +- sound/soc/codecs/tlv320aic23.c | 10 ++-- sound/usb/usx2y/us122l.c | 13 +++--- 6 files changed, 88 insertions(+), 39 deletions(-)
sound/arm/pxa2xx-ac97-lib.c +6 -6
@@ -50,7 +50,7 @@ unsigned short pxa2xx_ac97_read(struct snd_ac97 *ac97, unsigned short reg)mutex_lock (&car_mutex);/* set up primary or secondary codec space */ -if ((cpu_is_pxa21x () ||cpu_is_pxa25x ()) && reg ==AC97_GPIO_STATUS ) +if (cpu_is_pxa25x () && reg ==AC97_GPIO_STATUS ) reg_addr = ac97->num ? &SMC_REG_BASE : &PMC_REG_BASE ;else reg_addr = ac97->num ? &SAC_REG_BASE : &PAC_REG_BASE ;
@@ -90,7 +90,7 @@ void pxa2xx_ac97_write(struct snd_ac97 *ac97, unsigned short reg,mutex_lock (&car_mutex);/* set up primary or secondary codec space */ -if ((cpu_is_pxa21x () ||cpu_is_pxa25x ()) && reg ==AC97_GPIO_STATUS ) +if (cpu_is_pxa25x () && reg ==AC97_GPIO_STATUS ) reg_addr = ac97->num ? &SMC_REG_BASE : &PMC_REG_BASE ;else reg_addr = ac97->num ? &SAC_REG_BASE : &PAC_REG_BASE ;
@@ -200,7 +200,7 @@ static inline void pxa_ac97_cold_pxa3xx(void)bool pxa2xx_ac97_try_warm_reset (struct snd_ac97 *ac97) {#ifdef CONFIG_PXA25x -if (cpu_is_pxa21x () ||cpu_is_pxa25x ()) +if (cpu_is_pxa25x ())pxa_ac97_warm_pxa25x (); else#endif
@@ -230,7 +230,7 @@ EXPORT_SYMBOL_GPL(pxa2xx_ac97_try_warm_reset);bool pxa2xx_ac97_try_cold_reset (struct snd_ac97 *ac97) {#ifdef CONFIG_PXA25x -if (cpu_is_pxa21x () ||cpu_is_pxa25x ()) +if (cpu_is_pxa25x ())pxa_ac97_cold_pxa25x (); else#endif
@@ -301,7 +301,7 @@ EXPORT_SYMBOL_GPL(pxa2xx_ac97_hw_suspend);int pxa2xx_ac97_hw_resume (void ) { -if (cpu_is_pxa21x () ||cpu_is_pxa25x () ||cpu_is_pxa27x ()) { +if (cpu_is_pxa25x () ||cpu_is_pxa27x ()) {pxa_gpio_mode (GPIO31_SYNC_AC97_MD );pxa_gpio_mode (GPIO30_SDATA_OUT_AC97_MD );pxa_gpio_mode (GPIO28_BITCLK_AC97_MD );
@@ -325,7 +325,7 @@ int __devinit pxa2xx_ac97_hw_probe(struct platform_device *dev)if (ret <0 ) goto err; -if (cpu_is_pxa21x () ||cpu_is_pxa25x () ||cpu_is_pxa27x ()) { +if (cpu_is_pxa25x () ||cpu_is_pxa27x ()) {pxa_gpio_mode (GPIO31_SYNC_AC97_MD );pxa_gpio_mode (GPIO30_SDATA_OUT_AC97_MD );pxa_gpio_mode (GPIO28_BITCLK_AC97_MD );
sound/pci/hda/patch_realtek.c +68 -20
219 lines not on this page · raw message
sound/pci/hda/patch_sigmatel.c +1 -1
@@ -2816,7 +2816,7 @@ static int stac92xx_auto_create_multi_out_ctls(struct hda_codec *codec,static const char *chname[4 ] = {"Front" ,"Surround" ,NULL /*CLFE*/ ,"Side" }; -hda_nid_t nid; +hda_nid_t nid =0 ;int i, err;struct sigmatel_spec *spec = codec->spec;
sound/soc/codecs/Kconfig +1 -1
@@ -68,7 +68,7 @@ config SND_SOC_TLV320AIC23 depends on I2C config SND_SOC_TLV320AIC26 - tristate "TI TLV320AIC26 Codec support" + tristate "TI TLV320AIC26 Codec support" if SND_SOC_OF_SIMPLE depends on SPI config SND_SOC_TLV320AIC3X
sound/soc/codecs/tlv320aic23.c +5 -5
@@ -84,7 +84,7 @@ static int tlv320aic23_write(struct snd_soc_codec *codec, unsigned int reg, unsigned int value) { -u8 data; +u8 data[2 ];/* TLV320AIC23 has 7 bit address and 9 bits of data * so we need to switch one data bit into reg and rest
@@ -96,12 +96,12 @@ static int tlv320aic23_write(struct snd_soc_codec *codec, unsigned int reg,return -1 ; } - data = (reg <<1 ) | (value >>8 &0x01 ); + data[0 ] = (reg <<1 ) | (value >>8 &0x01 ); + data[1 ] = value &0xff ;tlv320aic23_write_reg_cache (codec, reg, value); -if (codec->hw_write (codec->control_data, data, - (value &0xff )) ==0 ) +if (codec->hw_write (codec->control_data, data,2 ) ==2 )return 0 ; printk(KERN_ERR "%s cannot write %03x to register R%d\n", __func__,
@@ -674,7 +674,7 @@ static int tlv320aic23_probe(struct platform_device *pdev) tlv320aic23_socdev = socdev;#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) - codec->hw_write = (hw_write_t ) i2c_smbus_write_byte_data; + codec->hw_write = (hw_write_t ) i2c_master_send; codec->hw_read =NULL ; ret =i2c_add_driver (&tlv320aic23_i2c_driver);if (ret !=0 )
sound/usb/usx2y/us122l.c +7 -6
@@ -118,12 +118,11 @@ static int usb_stream_hwdep_vm_fault(struct vm_area_struct *area,void *vaddr;struct us122l *us122l = area->vm_private_data;struct usb_stream *s; -int vm_f =VM_FAULT_SIGBUS ;mutex_lock (&us122l->mutex); s = us122l->sk.s;if (!s) - goto out; + goto unlock; offset = vmf->pgoff <<PAGE_SHIFT ;if (offset <PAGE_ALIGN (s->read_size))
@@ -131,7 +130,7 @@ static int usb_stream_hwdep_vm_fault(struct vm_area_struct *area,else { offset -=PAGE_ALIGN (s->read_size);if (offset >=PAGE_ALIGN (s->write_size)) - goto out; + goto unlock; vaddr = us122l->sk.write_page + offset; }
@@ -141,9 +140,11 @@ static int usb_stream_hwdep_vm_fault(struct vm_area_struct *area,mutex_unlock (&us122l->mutex); vmf->page = page; - vm_f =0 ; -out: -return vm_f; + +return 0 ; +unlock: +mutex_unlock (&us122l->mutex); +return VM_FAULT_SIGBUS ; }static void usb_stream_hwdep_vm_close (struct vm_area_struct *area)