[alsa-devel] No speaker output with kernel 3.15 and later

Takashi Iwai tiwai at suse.de
Mon Jul 14 16:22:14 CEST 2014


At Sat, 12 Jul 2014 00:20:45 +0100,
Steven Newbury wrote:
> 
> > The patch below does revert conditionally only for Intel controller
> > chips.  This should work instead of git revert.  Let me know if it
> > really works for you.
> >  
> Indeed t works.

OK, I queued the fix, with Cc to stable now.

> > But, we still want to understand why.  Maybe assigning the device
> > manually to an explicit value and figuring out which dev# doesn't 
> > work
> > would be helpful.
> How do you want me to test this?

Specify directly the stream number assigned to a PCM playback.
Change dev to a different value, and see whether it works while keep
nums = 1.  dev = 0 is reserved for the capture stream, so use other
values.

Test this only with onboard analog, and better to avoid PulseAudio.
Fixated numbers would break HDMI audio badly.


thanks,

Takashi

---
diff --git a/sound/pci/hda/hda_controller.c b/sound/pci/hda/hda_controller.c
index 06f39c126ba4..8e570f44367f 100644
--- a/sound/pci/hda/hda_controller.c
+++ b/sound/pci/hda/hda_controller.c
@@ -178,8 +178,8 @@ azx_assign_device(struct azx *chip, struct snd_pcm_substream *substream)
 		(substream->stream + 1);
 
 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
-		dev = chip->playback_index_offset;
-		nums = chip->playback_streams;
+		dev = 4;
+		nums = 1;
 	} else {
 		dev = chip->capture_index_offset;
 		nums = chip->capture_streams;


More information about the Alsa-devel mailing list