Skip to contentSkip to conversation

On HD codec valid command working only on hwdep hda-verb and embedded on function snd_hda_multi_out_analog_open

PATCH asd 2 participants 2 messages Jun 7, 2014 – Jun 8, 2014

lore
Share & tools
lore

asd

author
#0 lore raw

Hi

On patch_realtek can't run snd_hda_write.Only situations when run snd_hda_write is to run inside off snd_hda_multi_out_analog_open function (suppose to when sream is on codec is weak up and become online.

hda_codec.c +2 -0
Index: hda/hda_codec.c
===================================================================
@@ -5420,6 +5420,8 @@
 		}
 		mutex_unlock(&codec->spdif_mutex);
 	}
+	snd_hda_codec_write(codec, 0x14, 0,
+		AC_VERB_SET_PIN_WIDGET_CONTROL, 0xc0);
 	return snd_pcm_hw_constraint_step(substream->runtime, 0,
 					  SNDRV_PCM_HW_PARAM_CHANNELS, 2);
 }
#1 lore raw

At Sat, 07 Jun 2014 13:10:20 +0300,

Quoted 6 lines · asd

Hi

On patch_realtek can't run snd_hda_write.Only situations when run snd_hda_write is to run inside off snd_hda_multi_out_analog_open function (suppose to when sream is on codec is weak up and become online.

Sorry, I don't understand at all what you wrote.
Could you elaborate?

Takashi

Quoted 17 lines

Index: hda/hda_codec.c
===================================================================

hda_codec.c +2 -0
@@ -5420,6 +5420,8 @@
 		}
 		mutex_unlock(&codec->spdif_mutex);
 	}
+	snd_hda_codec_write(codec, 0x14, 0,
+		AC_VERB_SET_PIN_WIDGET_CONTROL, 0xc0);
 	return snd_pcm_hw_constraint_step(substream->runtime, 0,
 					  SNDRV_PCM_HW_PARAM_CHANNELS, 2);
 }

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel