Merge branches 'topic/fix/misc' and 'topic/fix/asoc' into for-linus

+49 -14
+2 -1
include/sound/soc.h
··· 28 28 */ 29 29 #define SOC_SINGLE_VALUE(xreg, xshift, xmax, xinvert) \ 30 30 ((unsigned long)&(struct soc_mixer_control) \ 31 - {.reg = xreg, .shift = xshift, .max = xmax, .invert = xinvert}) 31 + {.reg = xreg, .shift = xshift, .rshift = xshift, .max = xmax, \ 32 + .invert = xinvert}) 32 33 #define SOC_SINGLE_VALUE_EXT(xreg, xmax, xinvert) \ 33 34 ((unsigned long)&(struct soc_mixer_control) \ 34 35 {.reg = xreg, .max = xmax, .invert = xinvert})
+3 -3
sound/pci/ac97/ac97_codec.c
··· 1927 1927 ac97->dev.bus = &ac97_bus_type; 1928 1928 ac97->dev.parent = ac97->bus->card->dev; 1929 1929 ac97->dev.release = ac97_device_release; 1930 - snprintf(ac97->dev.bus_id, BUS_ID_SIZE, "%d-%d:%s", 1931 - ac97->bus->card->number, ac97->num, 1932 - snd_ac97_get_short_name(ac97)); 1930 + dev_set_name(&ac97->dev, "%d-%d:%s", 1931 + ac97->bus->card->number, ac97->num, 1932 + snd_ac97_get_short_name(ac97)); 1933 1933 if ((err = device_register(&ac97->dev)) < 0) { 1934 1934 snd_printk(KERN_ERR "Can't register ac97 bus\n"); 1935 1935 ac97->dev.bus = NULL;
+4 -2
sound/pci/ice1712/ice1712.c
··· 2688 2688 return err; 2689 2689 } 2690 2690 2691 - if (ice_has_con_ac97(ice)) 2691 + if (ice_has_con_ac97(ice)) { 2692 2692 err = snd_ice1712_pcm(ice, pcm_dev++, NULL); 2693 2693 if (err < 0) { 2694 2694 snd_card_free(card); 2695 2695 return err; 2696 2696 } 2697 + } 2697 2698 2698 2699 err = snd_ice1712_ac97_mixer(ice); 2699 2700 if (err < 0) { ··· 2716 2715 } 2717 2716 } 2718 2717 2719 - if (ice_has_con_ac97(ice)) 2718 + if (ice_has_con_ac97(ice)) { 2720 2719 err = snd_ice1712_pcm_ds(ice, pcm_dev++, NULL); 2721 2720 if (err < 0) { 2722 2721 snd_card_free(card); 2723 2722 return err; 2724 2723 } 2724 + } 2725 2725 2726 2726 if (!c->no_mpu401) { 2727 2727 err = snd_mpu401_uart_new(card, 0, MPU401_HW_ICE1712,
+1 -1
sound/soc/codecs/wm9713.c
··· 140 140 141 141 SOC_SINGLE("ALC Target Volume", AC97_CODEC_CLASS_REV, 12, 15, 0), 142 142 SOC_SINGLE("ALC Hold Time", AC97_CODEC_CLASS_REV, 8, 15, 0), 143 - SOC_SINGLE("ALC Decay Time ", AC97_CODEC_CLASS_REV, 4, 15, 0), 143 + SOC_SINGLE("ALC Decay Time", AC97_CODEC_CLASS_REV, 4, 15, 0), 144 144 SOC_SINGLE("ALC Attack Time", AC97_CODEC_CLASS_REV, 0, 15, 0), 145 145 SOC_ENUM("ALC Function", wm9713_enum[6]), 146 146 SOC_SINGLE("ALC Max Volume", AC97_PCI_SVID, 11, 7, 0),
+8 -6
sound/soc/fsl/mpc5200_psc_i2s.c
··· 277 277 struct mpc52xx_psc __iomem *regs = psc_i2s->psc_regs; 278 278 u16 imr; 279 279 u8 psc_cmd; 280 - long flags; 280 + unsigned long flags; 281 281 282 282 if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE) 283 283 s = &psc_i2s->capture; ··· 699 699 return count; 700 700 } 701 701 702 - DEVICE_ATTR(status, 0644, psc_i2s_status_show, NULL); 703 - DEVICE_ATTR(playback_underrun, 0644, psc_i2s_stat_show, psc_i2s_stat_store); 704 - DEVICE_ATTR(capture_overrun, 0644, psc_i2s_stat_show, psc_i2s_stat_store); 702 + static DEVICE_ATTR(status, 0644, psc_i2s_status_show, NULL); 703 + static DEVICE_ATTR(playback_underrun, 0644, psc_i2s_stat_show, 704 + psc_i2s_stat_store); 705 + static DEVICE_ATTR(capture_overrun, 0644, psc_i2s_stat_show, 706 + psc_i2s_stat_store); 705 707 706 708 /* --------------------------------------------------------------------- 707 709 * OF platform bus binding code: ··· 821 819 822 820 /* Register the SYSFS files */ 823 821 rc = device_create_file(psc_i2s->dev, &dev_attr_status); 824 - rc = device_create_file(psc_i2s->dev, &dev_attr_capture_overrun); 825 - rc = device_create_file(psc_i2s->dev, &dev_attr_playback_underrun); 822 + rc |= device_create_file(psc_i2s->dev, &dev_attr_capture_overrun); 823 + rc |= device_create_file(psc_i2s->dev, &dev_attr_playback_underrun); 826 824 if (rc) 827 825 dev_info(psc_i2s->dev, "error creating sysfs files\n"); 828 826
+1 -1
sound/soc/soc-core.c
··· 1462 1462 struct soc_mixer_control *mc = 1463 1463 (struct soc_mixer_control *)kcontrol->private_value; 1464 1464 int max = mc->max; 1465 - unsigned int shift = mc->min; 1465 + unsigned int shift = mc->shift; 1466 1466 unsigned int rshift = mc->rshift; 1467 1467 1468 1468 if (max == 1)
+30
sound/usb/usbquirks.h
··· 1480 1480 } 1481 1481 } 1482 1482 }, 1483 + { 1484 + /* Advanced modes of the Edirol UA-25EX. 1485 + * For the standard mode, UA-25EX has ID 0582:00e7, which 1486 + * offers only 16-bit PCM at 44.1 kHz and no MIDI. 1487 + */ 1488 + USB_DEVICE_VENDOR_SPEC(0x0582, 0x00e6), 1489 + .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { 1490 + .vendor_name = "EDIROL", 1491 + .product_name = "UA-25EX", 1492 + .ifnum = QUIRK_ANY_INTERFACE, 1493 + .type = QUIRK_COMPOSITE, 1494 + .data = (const struct snd_usb_audio_quirk[]) { 1495 + { 1496 + .ifnum = 0, 1497 + .type = QUIRK_AUDIO_EDIROL_UAXX 1498 + }, 1499 + { 1500 + .ifnum = 1, 1501 + .type = QUIRK_AUDIO_EDIROL_UAXX 1502 + }, 1503 + { 1504 + .ifnum = 2, 1505 + .type = QUIRK_AUDIO_EDIROL_UAXX 1506 + }, 1507 + { 1508 + .ifnum = -1 1509 + } 1510 + } 1511 + } 1512 + }, 1483 1513 1484 1514 /* Guillemot devices */ 1485 1515 {