diff options
| -rw-r--r-- | sound/atmel/ac97c.c | 5 | ||||
| -rw-r--r-- | sound/oss/Makefile | 4 | ||||
| -rw-r--r-- | sound/pci/azt3328.c | 38 | ||||
| -rw-r--r-- | sound/pci/hda/hda_eld.c | 2 | ||||
| -rw-r--r-- | sound/pci/hda/patch_realtek.c | 6 | ||||
| -rw-r--r-- | sound/pci/oxygen/oxygen.h | 2 | ||||
| -rw-r--r-- | sound/pci/oxygen/oxygen_mixer.c | 2 | ||||
| -rw-r--r-- | sound/pci/oxygen/xonar_dg.c | 36 | ||||
| -rw-r--r-- | sound/soc/atmel/snd-soc-afeb9260.c | 2 | ||||
| -rw-r--r-- | sound/soc/blackfin/bf5xx-ssm2602.c | 2 | ||||
| -rw-r--r-- | sound/soc/codecs/wm8994.c | 2 | ||||
| -rw-r--r-- | sound/soc/codecs/wm8995.c | 2 | ||||
| -rw-r--r-- | sound/soc/codecs/wm_hubs.c | 15 | ||||
| -rw-r--r-- | sound/soc/davinci/davinci-evm.c | 2 | ||||
| -rw-r--r-- | sound/soc/pxa/corgi.c | 4 | ||||
| -rw-r--r-- | sound/soc/pxa/poodle.c | 2 | ||||
| -rw-r--r-- | sound/soc/pxa/spitz.c | 4 | ||||
| -rw-r--r-- | sound/soc/samsung/neo1973_gta02_wm8753.c | 6 | ||||
| -rw-r--r-- | sound/soc/samsung/neo1973_wm8753.c | 6 | ||||
| -rw-r--r-- | sound/soc/samsung/s3c24xx_simtec_hermes.c | 4 | ||||
| -rw-r--r-- | sound/soc/samsung/s3c24xx_simtec_tlv320aic23.c | 4 | ||||
| -rw-r--r-- | sound/soc/samsung/s3c24xx_uda134x.c | 2 |
22 files changed, 95 insertions, 57 deletions
diff --git a/sound/atmel/ac97c.c b/sound/atmel/ac97c.c index 10c3a871a12..b310702c646 100644 --- a/sound/atmel/ac97c.c +++ b/sound/atmel/ac97c.c | |||
| @@ -33,9 +33,12 @@ | |||
| 33 | #include <linux/dw_dmac.h> | 33 | #include <linux/dw_dmac.h> |
| 34 | 34 | ||
| 35 | #include <mach/cpu.h> | 35 | #include <mach/cpu.h> |
| 36 | #include <mach/hardware.h> | ||
| 37 | #include <mach/gpio.h> | 36 | #include <mach/gpio.h> |
| 38 | 37 | ||
| 38 | #ifdef CONFIG_ARCH_AT91 | ||
| 39 | #include <mach/hardware.h> | ||
| 40 | #endif | ||
| 41 | |||
| 39 | #include "ac97c.h" | 42 | #include "ac97c.h" |
| 40 | 43 | ||
| 41 | enum { | 44 | enum { |
diff --git a/sound/oss/Makefile b/sound/oss/Makefile index 96f14dcd0cd..90ffb99c6b1 100644 --- a/sound/oss/Makefile +++ b/sound/oss/Makefile | |||
| @@ -87,7 +87,7 @@ ifeq ($(CONFIG_PSS_HAVE_BOOT),y) | |||
| 87 | $(obj)/bin2hex pss_synth < $< > $@ | 87 | $(obj)/bin2hex pss_synth < $< > $@ |
| 88 | else | 88 | else |
| 89 | $(obj)/pss_boot.h: | 89 | $(obj)/pss_boot.h: |
| 90 | ( \ | 90 | $(Q)( \ |
| 91 | echo 'static unsigned char * pss_synth = NULL;'; \ | 91 | echo 'static unsigned char * pss_synth = NULL;'; \ |
| 92 | echo 'static int pss_synthLen = 0;'; \ | 92 | echo 'static int pss_synthLen = 0;'; \ |
| 93 | ) > $@ | 93 | ) > $@ |
| @@ -102,7 +102,7 @@ ifeq ($(CONFIG_TRIX_HAVE_BOOT),y) | |||
| 102 | $(obj)/hex2hex -i trix_boot < $< > $@ | 102 | $(obj)/hex2hex -i trix_boot < $< > $@ |
| 103 | else | 103 | else |
| 104 | $(obj)/trix_boot.h: | 104 | $(obj)/trix_boot.h: |
| 105 | ( \ | 105 | $(Q)( \ |
| 106 | echo 'static unsigned char * trix_boot = NULL;'; \ | 106 | echo 'static unsigned char * trix_boot = NULL;'; \ |
| 107 | echo 'static int trix_boot_len = 0;'; \ | 107 | echo 'static int trix_boot_len = 0;'; \ |
| 108 | ) > $@ | 108 | ) > $@ |
diff --git a/sound/pci/azt3328.c b/sound/pci/azt3328.c index 6117595fc07..573594bf322 100644 --- a/sound/pci/azt3328.c +++ b/sound/pci/azt3328.c | |||
| @@ -979,31 +979,25 @@ snd_azf3328_codec_setfmt(struct snd_azf3328_codec_data *codec, | |||
| 979 | 979 | ||
| 980 | snd_azf3328_dbgcallenter(); | 980 | snd_azf3328_dbgcallenter(); |
| 981 | switch (bitrate) { | 981 | switch (bitrate) { |
| 982 | #define AZF_FMT_XLATE(in_freq, out_bits) \ | 982 | case AZF_FREQ_4000: freq = SOUNDFORMAT_FREQ_SUSPECTED_4000; break; |
| 983 | do { \ | 983 | case AZF_FREQ_4800: freq = SOUNDFORMAT_FREQ_SUSPECTED_4800; break; |
| 984 | case AZF_FREQ_ ## in_freq: \ | 984 | case AZF_FREQ_5512: |
| 985 | freq = SOUNDFORMAT_FREQ_ ## out_bits; \ | 985 | /* the AZF3328 names it "5510" for some strange reason */ |
| 986 | break; \ | 986 | freq = SOUNDFORMAT_FREQ_5510; break; |
| 987 | } while (0); | 987 | case AZF_FREQ_6620: freq = SOUNDFORMAT_FREQ_6620; break; |
| 988 | AZF_FMT_XLATE(4000, SUSPECTED_4000) | 988 | case AZF_FREQ_8000: freq = SOUNDFORMAT_FREQ_8000; break; |
| 989 | AZF_FMT_XLATE(4800, SUSPECTED_4800) | 989 | case AZF_FREQ_9600: freq = SOUNDFORMAT_FREQ_9600; break; |
| 990 | /* the AZF3328 names it "5510" for some strange reason: */ | 990 | case AZF_FREQ_11025: freq = SOUNDFORMAT_FREQ_11025; break; |
| 991 | AZF_FMT_XLATE(5512, 5510) | 991 | case AZF_FREQ_13240: freq = SOUNDFORMAT_FREQ_SUSPECTED_13240; break; |
| 992 | AZF_FMT_XLATE(6620, 6620) | 992 | case AZF_FREQ_16000: freq = SOUNDFORMAT_FREQ_16000; break; |
| 993 | AZF_FMT_XLATE(8000, 8000) | 993 | case AZF_FREQ_22050: freq = SOUNDFORMAT_FREQ_22050; break; |
| 994 | AZF_FMT_XLATE(9600, 9600) | 994 | case AZF_FREQ_32000: freq = SOUNDFORMAT_FREQ_32000; break; |
| 995 | AZF_FMT_XLATE(11025, 11025) | ||
| 996 | AZF_FMT_XLATE(13240, SUSPECTED_13240) | ||
| 997 | AZF_FMT_XLATE(16000, 16000) | ||
| 998 | AZF_FMT_XLATE(22050, 22050) | ||
| 999 | AZF_FMT_XLATE(32000, 32000) | ||
| 1000 | default: | 995 | default: |
| 1001 | snd_printk(KERN_WARNING "unknown bitrate %d, assuming 44.1kHz!\n", bitrate); | 996 | snd_printk(KERN_WARNING "unknown bitrate %d, assuming 44.1kHz!\n", bitrate); |
| 1002 | /* fall-through */ | 997 | /* fall-through */ |
| 1003 | AZF_FMT_XLATE(44100, 44100) | 998 | case AZF_FREQ_44100: freq = SOUNDFORMAT_FREQ_44100; break; |
| 1004 | AZF_FMT_XLATE(48000, 48000) | 999 | case AZF_FREQ_48000: freq = SOUNDFORMAT_FREQ_48000; break; |
| 1005 | AZF_FMT_XLATE(66200, SUSPECTED_66200) | 1000 | case AZF_FREQ_66200: freq = SOUNDFORMAT_FREQ_SUSPECTED_66200; break; |
| 1006 | #undef AZF_FMT_XLATE | ||
| 1007 | } | 1001 | } |
| 1008 | /* val = 0xff07; 3m27.993s (65301Hz; -> 64000Hz???) hmm, 66120, 65967, 66123 */ | 1002 | /* val = 0xff07; 3m27.993s (65301Hz; -> 64000Hz???) hmm, 66120, 65967, 66123 */ |
| 1009 | /* val = 0xff09; 17m15.098s (13123,478Hz; -> 12000Hz???) hmm, 13237.2Hz? */ | 1003 | /* val = 0xff09; 17m15.098s (13123,478Hz; -> 12000Hz???) hmm, 13237.2Hz? */ |
diff --git a/sound/pci/hda/hda_eld.c b/sound/pci/hda/hda_eld.c index 4a663471dad..74b0560289c 100644 --- a/sound/pci/hda/hda_eld.c +++ b/sound/pci/hda/hda_eld.c | |||
| @@ -381,7 +381,7 @@ static void hdmi_show_short_audio_desc(struct cea_sad *a) | |||
| 381 | snd_print_pcm_rates(a->rates, buf, sizeof(buf)); | 381 | snd_print_pcm_rates(a->rates, buf, sizeof(buf)); |
| 382 | 382 | ||
| 383 | if (a->format == AUDIO_CODING_TYPE_LPCM) | 383 | if (a->format == AUDIO_CODING_TYPE_LPCM) |
| 384 | snd_print_pcm_bits(a->sample_bits, buf2 + 8, sizeof(buf2 - 8)); | 384 | snd_print_pcm_bits(a->sample_bits, buf2 + 8, sizeof(buf2) - 8); |
| 385 | else if (a->max_bitrate) | 385 | else if (a->max_bitrate) |
| 386 | snprintf(buf2, sizeof(buf2), | 386 | snprintf(buf2, sizeof(buf2), |
| 387 | ", max bitrate = %d", a->max_bitrate); | 387 | ", max bitrate = %d", a->max_bitrate); |
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index be4df4c6fd5..2fa9ed99c32 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c | |||
| @@ -14954,9 +14954,11 @@ static struct snd_pci_quirk alc269_fixup_tbl[] = { | |||
| 14954 | SND_PCI_QUIRK(0x104d, 0x9084, "Sony VAIO", ALC275_FIXUP_SONY_HWEQ), | 14954 | SND_PCI_QUIRK(0x104d, 0x9084, "Sony VAIO", ALC275_FIXUP_SONY_HWEQ), |
| 14955 | SND_PCI_QUIRK_VENDOR(0x104d, "Sony VAIO", ALC269_FIXUP_SONY_VAIO), | 14955 | SND_PCI_QUIRK_VENDOR(0x104d, "Sony VAIO", ALC269_FIXUP_SONY_VAIO), |
| 14956 | SND_PCI_QUIRK(0x1028, 0x0470, "Dell M101z", ALC269_FIXUP_DELL_M101Z), | 14956 | SND_PCI_QUIRK(0x1028, 0x0470, "Dell M101z", ALC269_FIXUP_DELL_M101Z), |
| 14957 | SND_PCI_QUIRK(0x17aa, 0x21b8, "Thinkpad Edge 14", ALC269_FIXUP_SKU_IGNORE), | ||
| 14958 | SND_PCI_QUIRK(0x17aa, 0x21e9, "Thinkpad Edge 14", ALC269_FIXUP_SKU_IGNORE), | ||
| 14959 | SND_PCI_QUIRK(0x17aa, 0x20f2, "Thinkpad SL410/510", ALC269_FIXUP_SKU_IGNORE), | 14957 | SND_PCI_QUIRK(0x17aa, 0x20f2, "Thinkpad SL410/510", ALC269_FIXUP_SKU_IGNORE), |
| 14958 | SND_PCI_QUIRK(0x17aa, 0x215e, "Thinkpad L512", ALC269_FIXUP_SKU_IGNORE), | ||
| 14959 | SND_PCI_QUIRK(0x17aa, 0x21b8, "Thinkpad Edge 14", ALC269_FIXUP_SKU_IGNORE), | ||
| 14960 | SND_PCI_QUIRK(0x17aa, 0x21ca, "Thinkpad L412", ALC269_FIXUP_SKU_IGNORE), | ||
| 14961 | SND_PCI_QUIRK(0x17aa, 0x21e9, "Thinkpad Edge 15", ALC269_FIXUP_SKU_IGNORE), | ||
| 14960 | SND_PCI_QUIRK(0x1043, 0x1a13, "Asus G73Jw", ALC269_FIXUP_ASUS_G73JW), | 14962 | SND_PCI_QUIRK(0x1043, 0x1a13, "Asus G73Jw", ALC269_FIXUP_ASUS_G73JW), |
| 14961 | SND_PCI_QUIRK(0x17aa, 0x9e54, "LENOVO NB", ALC269_FIXUP_LENOVO_EAPD), | 14963 | SND_PCI_QUIRK(0x17aa, 0x9e54, "LENOVO NB", ALC269_FIXUP_LENOVO_EAPD), |
| 14962 | {} | 14964 | {} |
diff --git a/sound/pci/oxygen/oxygen.h b/sound/pci/oxygen/oxygen.h index c2ae63d17cd..f53897a708b 100644 --- a/sound/pci/oxygen/oxygen.h +++ b/sound/pci/oxygen/oxygen.h | |||
| @@ -92,6 +92,8 @@ struct oxygen_model { | |||
| 92 | void (*update_dac_volume)(struct oxygen *chip); | 92 | void (*update_dac_volume)(struct oxygen *chip); |
| 93 | void (*update_dac_mute)(struct oxygen *chip); | 93 | void (*update_dac_mute)(struct oxygen *chip); |
| 94 | void (*update_center_lfe_mix)(struct oxygen *chip, bool mixed); | 94 | void (*update_center_lfe_mix)(struct oxygen *chip, bool mixed); |
| 95 | unsigned int (*adjust_dac_routing)(struct oxygen *chip, | ||
| 96 | unsigned int play_routing); | ||
| 95 | void (*gpio_changed)(struct oxygen *chip); | 97 | void (*gpio_changed)(struct oxygen *chip); |
| 96 | void (*uart_input)(struct oxygen *chip); | 98 | void (*uart_input)(struct oxygen *chip); |
| 97 | void (*ac97_switch)(struct oxygen *chip, | 99 | void (*ac97_switch)(struct oxygen *chip, |
diff --git a/sound/pci/oxygen/oxygen_mixer.c b/sound/pci/oxygen/oxygen_mixer.c index 9bff14d5895..26c7e8bcb22 100644 --- a/sound/pci/oxygen/oxygen_mixer.c +++ b/sound/pci/oxygen/oxygen_mixer.c | |||
| @@ -180,6 +180,8 @@ void oxygen_update_dac_routing(struct oxygen *chip) | |||
| 180 | (1 << OXYGEN_PLAY_DAC1_SOURCE_SHIFT) | | 180 | (1 << OXYGEN_PLAY_DAC1_SOURCE_SHIFT) | |
| 181 | (2 << OXYGEN_PLAY_DAC2_SOURCE_SHIFT) | | 181 | (2 << OXYGEN_PLAY_DAC2_SOURCE_SHIFT) | |
| 182 | (3 << OXYGEN_PLAY_DAC3_SOURCE_SHIFT); | 182 | (3 << OXYGEN_PLAY_DAC3_SOURCE_SHIFT); |
| 183 | if (chip->model.adjust_dac_routing) | ||
| 184 | reg_value = chip->model.adjust_dac_routing(chip, reg_value); | ||
| 183 | oxygen_write16_masked(chip, OXYGEN_PLAY_ROUTING, reg_value, | 185 | oxygen_write16_masked(chip, OXYGEN_PLAY_ROUTING, reg_value, |
| 184 | OXYGEN_PLAY_DAC0_SOURCE_MASK | | 186 | OXYGEN_PLAY_DAC0_SOURCE_MASK | |
| 185 | OXYGEN_PLAY_DAC1_SOURCE_MASK | | 187 | OXYGEN_PLAY_DAC1_SOURCE_MASK | |
diff --git a/sound/pci/oxygen/xonar_dg.c b/sound/pci/oxygen/xonar_dg.c index e1fa602eba7..bc6eb58be38 100644 --- a/sound/pci/oxygen/xonar_dg.c +++ b/sound/pci/oxygen/xonar_dg.c | |||
| @@ -24,6 +24,11 @@ | |||
| 24 | * | 24 | * |
| 25 | * SPI 0 -> CS4245 | 25 | * SPI 0 -> CS4245 |
| 26 | * | 26 | * |
| 27 | * I²S 1 -> CS4245 | ||
| 28 | * I²S 2 -> CS4361 (center/LFE) | ||
| 29 | * I²S 3 -> CS4361 (surround) | ||
| 30 | * I²S 4 -> CS4361 (front) | ||
| 31 | * | ||
| 27 | * GPIO 3 <- ? | 32 | * GPIO 3 <- ? |
| 28 | * GPIO 4 <- headphone detect | 33 | * GPIO 4 <- headphone detect |
| 29 | * GPIO 5 -> route input jack to line-in (0) or mic-in (1) | 34 | * GPIO 5 -> route input jack to line-in (0) or mic-in (1) |
| @@ -36,6 +41,7 @@ | |||
| 36 | * input 1 <- aux | 41 | * input 1 <- aux |
| 37 | * input 2 <- front mic | 42 | * input 2 <- front mic |
| 38 | * input 4 <- line/mic | 43 | * input 4 <- line/mic |
| 44 | * DAC out -> headphones | ||
| 39 | * aux out -> front panel headphones | 45 | * aux out -> front panel headphones |
| 40 | */ | 46 | */ |
| 41 | 47 | ||
| @@ -207,6 +213,35 @@ static void set_cs4245_adc_params(struct oxygen *chip, | |||
| 207 | cs4245_write_cached(chip, CS4245_ADC_CTRL, value); | 213 | cs4245_write_cached(chip, CS4245_ADC_CTRL, value); |
| 208 | } | 214 | } |
| 209 | 215 | ||
| 216 | static inline unsigned int shift_bits(unsigned int value, | ||
| 217 | unsigned int shift_from, | ||
| 218 | unsigned int shift_to, | ||
| 219 | unsigned int mask) | ||
| 220 | { | ||
| 221 | if (shift_from < shift_to) | ||
| 222 | return (value << (shift_to - shift_from)) & mask; | ||
| 223 | else | ||
| 224 | return (value >> (shift_from - shift_to)) & mask; | ||
| 225 | } | ||
| 226 | |||
| 227 | static unsigned int adjust_dg_dac_routing(struct oxygen *chip, | ||
| 228 | unsigned int play_routing) | ||
| 229 | { | ||
| 230 | return (play_routing & OXYGEN_PLAY_DAC0_SOURCE_MASK) | | ||
| 231 | shift_bits(play_routing, | ||
| 232 | OXYGEN_PLAY_DAC2_SOURCE_SHIFT, | ||
| 233 | OXYGEN_PLAY_DAC1_SOURCE_SHIFT, | ||
| 234 | OXYGEN_PLAY_DAC1_SOURCE_MASK) | | ||
| 235 | shift_bits(play_routing, | ||
| 236 | OXYGEN_PLAY_DAC1_SOURCE_SHIFT, | ||
| 237 | OXYGEN_PLAY_DAC2_SOURCE_SHIFT, | ||
| 238 | OXYGEN_PLAY_DAC2_SOURCE_MASK) | | ||
| 239 | shift_bits(play_routing, | ||
| 240 | OXYGEN_PLAY_DAC0_SOURCE_SHIFT, | ||
| 241 | OXYGEN_PLAY_DAC3_SOURCE_SHIFT, | ||
| 242 | OXYGEN_PLAY_DAC3_SOURCE_MASK); | ||
| 243 | } | ||
| 244 | |||
| 210 | static int output_switch_info(struct snd_kcontrol *ctl, | 245 | static int output_switch_info(struct snd_kcontrol *ctl, |
| 211 | struct snd_ctl_elem_info *info) | 246 | struct snd_ctl_elem_info *info) |
| 212 | { | 247 | { |
| @@ -557,6 +592,7 @@ struct oxygen_model model_xonar_dg = { | |||
| 557 | .resume = dg_resume, | 592 | .resume = dg_resume, |
| 558 | .set_dac_params = set_cs4245_dac_params, | 593 | .set_dac_params = set_cs4245_dac_params, |
| 559 | .set_adc_params = set_cs4245_adc_params, | 594 | .set_adc_params = set_cs4245_adc_params, |
| 595 | .adjust_dac_routing = adjust_dg_dac_routing, | ||
| 560 | .dump_registers = dump_cs4245_registers, | 596 | .dump_registers = dump_cs4245_registers, |
| 561 | .model_data_size = sizeof(struct dg), | 597 | .model_data_size = sizeof(struct dg), |
| 562 | .device_config = PLAYBACK_0_TO_I2S | | 598 | .device_config = PLAYBACK_0_TO_I2S | |
diff --git a/sound/soc/atmel/snd-soc-afeb9260.c b/sound/soc/atmel/snd-soc-afeb9260.c index da2208e06b0..5e4d499d843 100644 --- a/sound/soc/atmel/snd-soc-afeb9260.c +++ b/sound/soc/atmel/snd-soc-afeb9260.c | |||
| @@ -129,7 +129,7 @@ static struct snd_soc_dai_link afeb9260_dai = { | |||
| 129 | .cpu_dai_name = "atmel-ssc-dai.0", | 129 | .cpu_dai_name = "atmel-ssc-dai.0", |
| 130 | .codec_dai_name = "tlv320aic23-hifi", | 130 | .codec_dai_name = "tlv320aic23-hifi", |
| 131 | .platform_name = "atmel_pcm-audio", | 131 | .platform_name = "atmel_pcm-audio", |
| 132 | .codec_name = "tlv320aic23-codec.0-0x1a", | 132 | .codec_name = "tlv320aic23-codec.0-001a", |
| 133 | .init = afeb9260_tlv320aic23_init, | 133 | .init = afeb9260_tlv320aic23_init, |
| 134 | .ops = &afeb9260_ops, | 134 | .ops = &afeb9260_ops, |
| 135 | }; | 135 | }; |
diff --git a/sound/soc/blackfin/bf5xx-ssm2602.c b/sound/soc/blackfin/bf5xx-ssm2602.c index e902b24c185..ad28663f5bb 100644 --- a/sound/soc/blackfin/bf5xx-ssm2602.c +++ b/sound/soc/blackfin/bf5xx-ssm2602.c | |||
| @@ -119,7 +119,7 @@ static struct snd_soc_dai_link bf5xx_ssm2602_dai = { | |||
| 119 | .cpu_dai_name = "bf5xx-i2s", | 119 | .cpu_dai_name = "bf5xx-i2s", |
| 120 | .codec_dai_name = "ssm2602-hifi", | 120 | .codec_dai_name = "ssm2602-hifi", |
| 121 | .platform_name = "bf5xx-pcm-audio", | 121 | .platform_name = "bf5xx-pcm-audio", |
| 122 | .codec_name = "ssm2602-codec.0-0x1b", | 122 | .codec_name = "ssm2602-codec.0-001b", |
| 123 | .ops = &bf5xx_ssm2602_ops, | 123 | .ops = &bf5xx_ssm2602_ops, |
| 124 | }; | 124 | }; |
| 125 | 125 | ||
diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c index 247a6a99feb..3351f77607b 100644 --- a/sound/soc/codecs/wm8994.c +++ b/sound/soc/codecs/wm8994.c | |||
| @@ -2386,7 +2386,7 @@ static int wm8994_set_tristate(struct snd_soc_dai *codec_dai, int tristate) | |||
| 2386 | else | 2386 | else |
| 2387 | val = 0; | 2387 | val = 0; |
| 2388 | 2388 | ||
| 2389 | return snd_soc_update_bits(codec, reg, mask, reg); | 2389 | return snd_soc_update_bits(codec, reg, mask, val); |
| 2390 | } | 2390 | } |
| 2391 | 2391 | ||
| 2392 | #define WM8994_RATES SNDRV_PCM_RATE_8000_96000 | 2392 | #define WM8994_RATES SNDRV_PCM_RATE_8000_96000 |
diff --git a/sound/soc/codecs/wm8995.c b/sound/soc/codecs/wm8995.c index 6045cbde492..608c84c5aa8 100644 --- a/sound/soc/codecs/wm8995.c +++ b/sound/soc/codecs/wm8995.c | |||
| @@ -1223,7 +1223,7 @@ static int wm8995_set_tristate(struct snd_soc_dai *codec_dai, int tristate) | |||
| 1223 | else | 1223 | else |
| 1224 | val = 0; | 1224 | val = 0; |
| 1225 | 1225 | ||
| 1226 | return snd_soc_update_bits(codec, reg, mask, reg); | 1226 | return snd_soc_update_bits(codec, reg, mask, val); |
| 1227 | } | 1227 | } |
| 1228 | 1228 | ||
| 1229 | /* The size in bits of the FLL divide multiplied by 10 | 1229 | /* The size in bits of the FLL divide multiplied by 10 |
diff --git a/sound/soc/codecs/wm_hubs.c b/sound/soc/codecs/wm_hubs.c index c466982eed2..613df5db0b3 100644 --- a/sound/soc/codecs/wm_hubs.c +++ b/sound/soc/codecs/wm_hubs.c | |||
| @@ -91,6 +91,7 @@ static void wait_for_dc_servo(struct snd_soc_codec *codec, unsigned int op) | |||
| 91 | static void calibrate_dc_servo(struct snd_soc_codec *codec) | 91 | static void calibrate_dc_servo(struct snd_soc_codec *codec) |
| 92 | { | 92 | { |
| 93 | struct wm_hubs_data *hubs = snd_soc_codec_get_drvdata(codec); | 93 | struct wm_hubs_data *hubs = snd_soc_codec_get_drvdata(codec); |
| 94 | s8 offset; | ||
| 94 | u16 reg, reg_l, reg_r, dcs_cfg; | 95 | u16 reg, reg_l, reg_r, dcs_cfg; |
| 95 | 96 | ||
| 96 | /* If we're using a digital only path and have a previously | 97 | /* If we're using a digital only path and have a previously |
| @@ -149,16 +150,14 @@ static void calibrate_dc_servo(struct snd_soc_codec *codec) | |||
| 149 | hubs->dcs_codes); | 150 | hubs->dcs_codes); |
| 150 | 151 | ||
| 151 | /* HPOUT1L */ | 152 | /* HPOUT1L */ |
| 152 | if (reg_l + hubs->dcs_codes > 0 && | 153 | offset = reg_l; |
| 153 | reg_l + hubs->dcs_codes < 0xff) | 154 | offset += hubs->dcs_codes; |
| 154 | reg_l += hubs->dcs_codes; | 155 | dcs_cfg = (u8)offset << WM8993_DCS_DAC_WR_VAL_1_SHIFT; |
| 155 | dcs_cfg = reg_l << WM8993_DCS_DAC_WR_VAL_1_SHIFT; | ||
| 156 | 156 | ||
| 157 | /* HPOUT1R */ | 157 | /* HPOUT1R */ |
| 158 | if (reg_r + hubs->dcs_codes > 0 && | 158 | offset = reg_r; |
| 159 | reg_r + hubs->dcs_codes < 0xff) | 159 | offset += hubs->dcs_codes; |
| 160 | reg_r += hubs->dcs_codes; | 160 | dcs_cfg |= (u8)offset; |
| 161 | dcs_cfg |= reg_r; | ||
| 162 | 161 | ||
| 163 | dev_dbg(codec->dev, "DCS result: %x\n", dcs_cfg); | 162 | dev_dbg(codec->dev, "DCS result: %x\n", dcs_cfg); |
| 164 | 163 | ||
diff --git a/sound/soc/davinci/davinci-evm.c b/sound/soc/davinci/davinci-evm.c index 0c2d6bacc68..b36f0b39b09 100644 --- a/sound/soc/davinci/davinci-evm.c +++ b/sound/soc/davinci/davinci-evm.c | |||
| @@ -223,7 +223,7 @@ static struct snd_soc_dai_link da8xx_evm_dai = { | |||
| 223 | .stream_name = "AIC3X", | 223 | .stream_name = "AIC3X", |
| 224 | .cpu_dai_name= "davinci-mcasp.0", | 224 | .cpu_dai_name= "davinci-mcasp.0", |
| 225 | .codec_dai_name = "tlv320aic3x-hifi", | 225 | .codec_dai_name = "tlv320aic3x-hifi", |
| 226 | .codec_name = "tlv320aic3x-codec.0-001a", | 226 | .codec_name = "tlv320aic3x-codec.1-0018", |
| 227 | .platform_name = "davinci-pcm-audio", | 227 | .platform_name = "davinci-pcm-audio", |
| 228 | .init = evm_aic3x_init, | 228 | .init = evm_aic3x_init, |
| 229 | .ops = &evm_ops, | 229 | .ops = &evm_ops, |
diff --git a/sound/soc/pxa/corgi.c b/sound/soc/pxa/corgi.c index fc592f0d5fc..784cff5f67e 100644 --- a/sound/soc/pxa/corgi.c +++ b/sound/soc/pxa/corgi.c | |||
| @@ -307,10 +307,10 @@ static int corgi_wm8731_init(struct snd_soc_pcm_runtime *rtd) | |||
| 307 | static struct snd_soc_dai_link corgi_dai = { | 307 | static struct snd_soc_dai_link corgi_dai = { |
| 308 | .name = "WM8731", | 308 | .name = "WM8731", |
| 309 | .stream_name = "WM8731", | 309 | .stream_name = "WM8731", |
| 310 | .cpu_dai_name = "pxa-is2-dai", | 310 | .cpu_dai_name = "pxa2xx-i2s", |
| 311 | .codec_dai_name = "wm8731-hifi", | 311 | .codec_dai_name = "wm8731-hifi", |
| 312 | .platform_name = "pxa-pcm-audio", | 312 | .platform_name = "pxa-pcm-audio", |
| 313 | .codec_name = "wm8731-codec-0.001a", | 313 | .codec_name = "wm8731-codec-0.001b", |
| 314 | .init = corgi_wm8731_init, | 314 | .init = corgi_wm8731_init, |
| 315 | .ops = &corgi_ops, | 315 | .ops = &corgi_ops, |
| 316 | }; | 316 | }; |
diff --git a/sound/soc/pxa/poodle.c b/sound/soc/pxa/poodle.c index 6298ee115e2..a7d4999f9b2 100644 --- a/sound/soc/pxa/poodle.c +++ b/sound/soc/pxa/poodle.c | |||
| @@ -276,7 +276,7 @@ static struct snd_soc_dai_link poodle_dai = { | |||
| 276 | .cpu_dai_name = "pxa2xx-i2s", | 276 | .cpu_dai_name = "pxa2xx-i2s", |
| 277 | .codec_dai_name = "wm8731-hifi", | 277 | .codec_dai_name = "wm8731-hifi", |
| 278 | .platform_name = "pxa-pcm-audio", | 278 | .platform_name = "pxa-pcm-audio", |
| 279 | .codec_name = "wm8731-codec.0-001a", | 279 | .codec_name = "wm8731-codec.0-001b", |
| 280 | .init = poodle_wm8731_init, | 280 | .init = poodle_wm8731_init, |
| 281 | .ops = &poodle_ops, | 281 | .ops = &poodle_ops, |
| 282 | }; | 282 | }; |
diff --git a/sound/soc/pxa/spitz.c b/sound/soc/pxa/spitz.c index c2acb69b957..8e157135063 100644 --- a/sound/soc/pxa/spitz.c +++ b/sound/soc/pxa/spitz.c | |||
| @@ -315,10 +315,10 @@ static int spitz_wm8750_init(struct snd_soc_pcm_runtime *rtd) | |||
| 315 | static struct snd_soc_dai_link spitz_dai = { | 315 | static struct snd_soc_dai_link spitz_dai = { |
| 316 | .name = "wm8750", | 316 | .name = "wm8750", |
| 317 | .stream_name = "WM8750", | 317 | .stream_name = "WM8750", |
| 318 | .cpu_dai_name = "pxa-is2", | 318 | .cpu_dai_name = "pxa2xx-i2s", |
| 319 | .codec_dai_name = "wm8750-hifi", | 319 | .codec_dai_name = "wm8750-hifi", |
| 320 | .platform_name = "pxa-pcm-audio", | 320 | .platform_name = "pxa-pcm-audio", |
| 321 | .codec_name = "wm8750-codec.0-001a", | 321 | .codec_name = "wm8750-codec.0-001b", |
| 322 | .init = spitz_wm8750_init, | 322 | .init = spitz_wm8750_init, |
| 323 | .ops = &spitz_ops, | 323 | .ops = &spitz_ops, |
| 324 | }; | 324 | }; |
diff --git a/sound/soc/samsung/neo1973_gta02_wm8753.c b/sound/soc/samsung/neo1973_gta02_wm8753.c index 3eec610c10f..0d0ae2b9eef 100644 --- a/sound/soc/samsung/neo1973_gta02_wm8753.c +++ b/sound/soc/samsung/neo1973_gta02_wm8753.c | |||
| @@ -397,11 +397,11 @@ static struct snd_soc_dai_link neo1973_gta02_dai[] = { | |||
| 397 | { /* Hifi Playback - for similatious use with voice below */ | 397 | { /* Hifi Playback - for similatious use with voice below */ |
| 398 | .name = "WM8753", | 398 | .name = "WM8753", |
| 399 | .stream_name = "WM8753 HiFi", | 399 | .stream_name = "WM8753 HiFi", |
| 400 | .cpu_dai_name = "s3c24xx-i2s", | 400 | .cpu_dai_name = "s3c24xx-iis", |
| 401 | .codec_dai_name = "wm8753-hifi", | 401 | .codec_dai_name = "wm8753-hifi", |
| 402 | .init = neo1973_gta02_wm8753_init, | 402 | .init = neo1973_gta02_wm8753_init, |
| 403 | .platform_name = "samsung-audio", | 403 | .platform_name = "samsung-audio", |
| 404 | .codec_name = "wm8753-codec.0-0x1a", | 404 | .codec_name = "wm8753-codec.0-001a", |
| 405 | .ops = &neo1973_gta02_hifi_ops, | 405 | .ops = &neo1973_gta02_hifi_ops, |
| 406 | }, | 406 | }, |
| 407 | { /* Voice via BT */ | 407 | { /* Voice via BT */ |
| @@ -410,7 +410,7 @@ static struct snd_soc_dai_link neo1973_gta02_dai[] = { | |||
| 410 | .cpu_dai_name = "bluetooth-dai", | 410 | .cpu_dai_name = "bluetooth-dai", |
| 411 | .codec_dai_name = "wm8753-voice", | 411 | .codec_dai_name = "wm8753-voice", |
| 412 | .ops = &neo1973_gta02_voice_ops, | 412 | .ops = &neo1973_gta02_voice_ops, |
| 413 | .codec_name = "wm8753-codec.0-0x1a", | 413 | .codec_name = "wm8753-codec.0-001a", |
| 414 | .platform_name = "samsung-audio", | 414 | .platform_name = "samsung-audio", |
| 415 | }, | 415 | }, |
| 416 | }; | 416 | }; |
diff --git a/sound/soc/samsung/neo1973_wm8753.c b/sound/soc/samsung/neo1973_wm8753.c index c7a24514beb..d20815d5ab2 100644 --- a/sound/soc/samsung/neo1973_wm8753.c +++ b/sound/soc/samsung/neo1973_wm8753.c | |||
| @@ -559,9 +559,9 @@ static struct snd_soc_dai_link neo1973_dai[] = { | |||
| 559 | .name = "WM8753", | 559 | .name = "WM8753", |
| 560 | .stream_name = "WM8753 HiFi", | 560 | .stream_name = "WM8753 HiFi", |
| 561 | .platform_name = "samsung-audio", | 561 | .platform_name = "samsung-audio", |
| 562 | .cpu_dai_name = "s3c24xx-i2s", | 562 | .cpu_dai_name = "s3c24xx-iis", |
| 563 | .codec_dai_name = "wm8753-hifi", | 563 | .codec_dai_name = "wm8753-hifi", |
| 564 | .codec_name = "wm8753-codec.0-0x1a", | 564 | .codec_name = "wm8753-codec.0-001a", |
| 565 | .init = neo1973_wm8753_init, | 565 | .init = neo1973_wm8753_init, |
| 566 | .ops = &neo1973_hifi_ops, | 566 | .ops = &neo1973_hifi_ops, |
| 567 | }, | 567 | }, |
| @@ -571,7 +571,7 @@ static struct snd_soc_dai_link neo1973_dai[] = { | |||
| 571 | .platform_name = "samsung-audio", | 571 | .platform_name = "samsung-audio", |
| 572 | .cpu_dai_name = "bluetooth-dai", | 572 | .cpu_dai_name = "bluetooth-dai", |
| 573 | .codec_dai_name = "wm8753-voice", | 573 | .codec_dai_name = "wm8753-voice", |
| 574 | .codec_name = "wm8753-codec.0-0x1a", | 574 | .codec_name = "wm8753-codec.0-001a", |
| 575 | .ops = &neo1973_voice_ops, | 575 | .ops = &neo1973_voice_ops, |
| 576 | }, | 576 | }, |
| 577 | }; | 577 | }; |
diff --git a/sound/soc/samsung/s3c24xx_simtec_hermes.c b/sound/soc/samsung/s3c24xx_simtec_hermes.c index bb4292e3596..08fcaaa6690 100644 --- a/sound/soc/samsung/s3c24xx_simtec_hermes.c +++ b/sound/soc/samsung/s3c24xx_simtec_hermes.c | |||
| @@ -94,8 +94,8 @@ static int simtec_hermes_init(struct snd_soc_pcm_runtime *rtd) | |||
| 94 | static struct snd_soc_dai_link simtec_dai_aic33 = { | 94 | static struct snd_soc_dai_link simtec_dai_aic33 = { |
| 95 | .name = "tlv320aic33", | 95 | .name = "tlv320aic33", |
| 96 | .stream_name = "TLV320AIC33", | 96 | .stream_name = "TLV320AIC33", |
| 97 | .codec_name = "tlv320aic3x-codec.0-0x1a", | 97 | .codec_name = "tlv320aic3x-codec.0-001a", |
| 98 | .cpu_dai_name = "s3c24xx-i2s", | 98 | .cpu_dai_name = "s3c24xx-iis", |
| 99 | .codec_dai_name = "tlv320aic3x-hifi", | 99 | .codec_dai_name = "tlv320aic3x-hifi", |
| 100 | .platform_name = "samsung-audio", | 100 | .platform_name = "samsung-audio", |
| 101 | .init = simtec_hermes_init, | 101 | .init = simtec_hermes_init, |
diff --git a/sound/soc/samsung/s3c24xx_simtec_tlv320aic23.c b/sound/soc/samsung/s3c24xx_simtec_tlv320aic23.c index fbba4e36772..116e3e67016 100644 --- a/sound/soc/samsung/s3c24xx_simtec_tlv320aic23.c +++ b/sound/soc/samsung/s3c24xx_simtec_tlv320aic23.c | |||
| @@ -85,8 +85,8 @@ static int simtec_tlv320aic23_init(struct snd_soc_pcm_runtime *rtd) | |||
| 85 | static struct snd_soc_dai_link simtec_dai_aic23 = { | 85 | static struct snd_soc_dai_link simtec_dai_aic23 = { |
| 86 | .name = "tlv320aic23", | 86 | .name = "tlv320aic23", |
| 87 | .stream_name = "TLV320AIC23", | 87 | .stream_name = "TLV320AIC23", |
| 88 | .codec_name = "tlv320aic3x-codec.0-0x1a", | 88 | .codec_name = "tlv320aic3x-codec.0-001a", |
| 89 | .cpu_dai_name = "s3c24xx-i2s", | 89 | .cpu_dai_name = "s3c24xx-iis", |
| 90 | .codec_dai_name = "tlv320aic3x-hifi", | 90 | .codec_dai_name = "tlv320aic3x-hifi", |
| 91 | .platform_name = "samsung-audio", | 91 | .platform_name = "samsung-audio", |
| 92 | .init = simtec_tlv320aic23_init, | 92 | .init = simtec_tlv320aic23_init, |
diff --git a/sound/soc/samsung/s3c24xx_uda134x.c b/sound/soc/samsung/s3c24xx_uda134x.c index cdc8ecbcb8e..2c09e93dd56 100644 --- a/sound/soc/samsung/s3c24xx_uda134x.c +++ b/sound/soc/samsung/s3c24xx_uda134x.c | |||
| @@ -228,7 +228,7 @@ static struct snd_soc_dai_link s3c24xx_uda134x_dai_link = { | |||
| 228 | .stream_name = "UDA134X", | 228 | .stream_name = "UDA134X", |
| 229 | .codec_name = "uda134x-hifi", | 229 | .codec_name = "uda134x-hifi", |
| 230 | .codec_dai_name = "uda134x-hifi", | 230 | .codec_dai_name = "uda134x-hifi", |
| 231 | .cpu_dai_name = "s3c24xx-i2s", | 231 | .cpu_dai_name = "s3c24xx-iis", |
| 232 | .ops = &s3c24xx_uda134x_ops, | 232 | .ops = &s3c24xx_uda134x_ops, |
| 233 | .platform_name = "samsung-audio", | 233 | .platform_name = "samsung-audio", |
| 234 | }; | 234 | }; |
