]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Move non-PCM check to per_pin in patch_hdmi.c
authorTakashi Iwai <tiwai@suse.de>
Thu, 6 Sep 2012 15:42:08 +0000 (17:42 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 6 Sep 2012 15:59:19 +0000 (17:59 +0200)
commit49d9a36b327432c5977e169d2480f7579922842f
treec3d6babd6561a814f0e2caed8f896eba3082e0b6
parente0a9cd7b683834eb647992d4d459228d6fb31954
ALSA: hda - Move non-PCM check to per_pin in patch_hdmi.c

Recently the check for non-PCM stream state was added to the generic
HDMI driver code.  But this check should be done rather to each pin
instead of each converter.  Otherwise when a different converter is
assigned at the next open, the audio infoframe can be inconsistent
with the setup using the previous converter.

For fixing this issue, this patch moves the state of the current
non-PCM status from per_cvt to per_pin.  (In addition an unused
argument cvt_nid is stripped from hdmi_setup_channel_mapping())

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_hdmi.c