diff mbox

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

Message ID 2900340.PkFpOr51gc@marian1000.go.ro (mailing list archive)
State New, archived
Headers show

Commit Message

asd June 7, 2014, 10:10 a.m. UTC
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.

Comments

Takashi Iwai June 8, 2014, 9:59 a.m. UTC | #1
At Sat, 07 Jun 2014 13:10:20 +0300,
asd wrote:
> 
> 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

> Index: hda/hda_codec.c
> ===================================================================
> --- hda.orig/hda_codec.c	2014-06-07 12:38:24.000000000 +0300
> +++ hda/hda_codec.c	2014-06-07 12:51:16.173510291 +0300
> @@ -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
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
diff mbox

Patch

Index: hda/hda_codec.c
===================================================================
--- hda.orig/hda_codec.c	2014-06-07 12:38:24.000000000 +0300
+++ hda/hda_codec.c	2014-06-07 12:51:16.173510291 +0300
@@ -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);
 }