Skip to content

Commit 48a4675

Browse files
committed
Merge tag 'sound-3.4' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound
Pull sound fixes from Takashi Iwai: "A collection of small fixes for 3.4-rc1, including - mic-recording regression fix for Realtek codec - clean-up of dmaengine parameter mess - WM8894 calibration tweak - minor fixes for asihpi and some bool module parms" * tag 'sound-3.4' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: ALSA: fix isa/opti9xx module param type sound: fix oss/msnd_pinnacle module param type ALSA: asihpi - fix return type of hpios_locked_mem_alloc() ASoC: dmaengine_pcm: use dmaengine cyclic wrapper ASoC: Add extra parameter to device_prep_dma_cyclic ALSA: hda/realtek - Fix ADC assignment with a shared HP/Mic pin ASoC: wm8994: Update WM8994 DCS calibration
2 parents 59f2fe3 + c578ae0 commit 48a4675

7 files changed

Lines changed: 13 additions & 10 deletions

File tree

‎sound/isa/opti9xx/opti92x-ad1848.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ static int index = SNDRV_DEFAULT_IDX1; /* Index 0-MAX */
6565
static char *id = SNDRV_DEFAULT_STR1; /* ID for this card */
6666
//static bool enable = SNDRV_DEFAULT_ENABLE1; /* Enable this card */
6767
#ifdef CONFIG_PNP
68-
static int isapnp = 1; /* Enable ISA PnP detection */
68+
static bool isapnp = true; /* Enable ISA PnP detection */
6969
#endif
7070
static long port = SNDRV_DEFAULT_PORT1; /* 0x530,0xe80,0xf40,0x604 */
7171
static long mpu_port = SNDRV_DEFAULT_PORT1; /* 0x300,0x310,0x320,0x330 */

‎sound/oss/msnd_pinnacle.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1631,7 +1631,7 @@ static int ide_irq __initdata = 0;
16311631
static int joystick_io __initdata = 0;
16321632

16331633
/* If we have the digital daugherboard... */
1634-
static int digital __initdata = 0;
1634+
static bool digital __initdata = false;
16351635
#endif
16361636

16371637
static int fifosize __initdata = DEFFIFOSIZE;

‎sound/pci/asihpi/hpi_internal.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ On error *pLockedMemHandle marked invalid, non-zero returned.
4242
If this function succeeds, then HpiOs_LockedMem_GetVirtAddr() and
4343
HpiOs_LockedMem_GetPyhsAddr() will always succed on the returned handle.
4444
*/
45-
u16 hpios_locked_mem_alloc(struct consistent_dma_area *p_locked_mem_handle,
45+
int hpios_locked_mem_alloc(struct consistent_dma_area *p_locked_mem_handle,
4646
/**< memory handle */
4747
u32 size, /**< Size in bytes to allocate */
4848
struct pci_dev *p_os_reference

‎sound/pci/asihpi/hpios.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ void hpios_delay_micro_seconds(u32 num_micro_sec)
4343
4444
On error, return -ENOMEM, and *pMemArea.size = 0
4545
*/
46-
u16 hpios_locked_mem_alloc(struct consistent_dma_area *p_mem_area, u32 size,
46+
int hpios_locked_mem_alloc(struct consistent_dma_area *p_mem_area, u32 size,
4747
struct pci_dev *pdev)
4848
{
4949
/*?? any benefit in using managed dmam_alloc_coherent? */

‎sound/pci/hda/patch_realtek.c‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2717,9 +2717,6 @@ static int alc_auto_fill_adc_caps(struct hda_codec *codec)
27172717
int max_nums = ARRAY_SIZE(spec->private_adc_nids);
27182718
int i, nums = 0;
27192719

2720-
if (spec->shared_mic_hp)
2721-
max_nums = 1; /* no multi streams with the shared HP/mic */
2722-
27232720
nid = codec->start_nid;
27242721
for (i = 0; i < codec->num_nodes; i++, nid++) {
27252722
hda_nid_t src;
@@ -4076,6 +4073,7 @@ static void alc_remove_invalid_adc_nids(struct hda_codec *codec)
40764073
if (spec->dyn_adc_switch)
40774074
return;
40784075

4076+
again:
40794077
nums = 0;
40804078
for (n = 0; n < spec->num_adc_nids; n++) {
40814079
hda_nid_t cap = spec->private_capsrc_nids[n];
@@ -4096,6 +4094,11 @@ static void alc_remove_invalid_adc_nids(struct hda_codec *codec)
40964094
if (!nums) {
40974095
/* check whether ADC-switch is possible */
40984096
if (!alc_check_dyn_adc_switch(codec)) {
4097+
if (spec->shared_mic_hp) {
4098+
spec->shared_mic_hp = 0;
4099+
spec->private_imux[0].num_items = 1;
4100+
goto again;
4101+
}
40994102
printk(KERN_WARNING "hda_codec: %s: no valid ADC found;"
41004103
" using fallback 0x%x\n",
41014104
codec->chip_name, spec->private_adc_nids[0]);
@@ -4113,7 +4116,7 @@ static void alc_remove_invalid_adc_nids(struct hda_codec *codec)
41134116

41144117
if (spec->auto_mic)
41154118
alc_auto_mic_check_imux(codec); /* check auto-mic setups */
4116-
else if (spec->input_mux->num_items == 1)
4119+
else if (spec->input_mux->num_items == 1 || spec->shared_mic_hp)
41174120
spec->num_adc_nids = 1; /* reduce to a single ADC */
41184121
}
41194122

‎sound/soc/codecs/wm8994.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3629,7 +3629,7 @@ static int wm8994_codec_probe(struct snd_soc_codec *codec)
36293629
case 2:
36303630
case 3:
36313631
wm8994->hubs.dcs_codes_l = -9;
3632-
wm8994->hubs.dcs_codes_r = -5;
3632+
wm8994->hubs.dcs_codes_r = -7;
36333633
break;
36343634
default:
36353635
break;

‎sound/soc/soc-dmaengine-pcm.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ static int dmaengine_pcm_prepare_and_submit(struct snd_pcm_substream *substream)
143143
direction = snd_pcm_substream_to_dma_direction(substream);
144144

145145
prtd->pos = 0;
146-
desc = chan->device->device_prep_dma_cyclic(chan,
146+
desc = dmaengine_prep_dma_cyclic(chan,
147147
substream->runtime->dma_addr,
148148
snd_pcm_lib_buffer_bytes(substream),
149149
snd_pcm_lib_period_bytes(substream), direction);

0 commit comments

Comments
 (0)