All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] revo51: add headphone output
@ 2008-08-21  4:28 Alexander Beregalov
  2008-08-21  7:14 ` Pavel Hofman
  2008-08-21  9:07 ` Takashi Iwai
  0 siblings, 2 replies; 5+ messages in thread
From: Alexander Beregalov @ 2008-08-21  4:28 UTC (permalink / raw)
  To: tiwai, alsa-devel; +Cc: voss


 It is ALSA bug #1754.
 D6 bit in 02 register is PW4.

Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
---

 sound/i2c/other/ak4xxx-adda.c |    4 ++--
 sound/pci/ice1712/revo.c      |    5 +++--
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/sound/i2c/other/ak4xxx-adda.c b/sound/i2c/other/ak4xxx-adda.c
index 288926d..4c94458 100644
--- a/sound/i2c/other/ak4xxx-adda.c
+++ b/sound/i2c/other/ak4xxx-adda.c
@@ -233,8 +233,8 @@ void snd_akm4xxx_init(struct snd_akm4xxx *ak)
 		0x01, 0x02, /* 1: reset and soft-mute */
 		0x00, 0x06, /* 0: mode3(i2s), disable auto-clock detect,
 			     * disable DZF, sharp roll-off, RSTN#=0 */
-		0x02, 0x0e, /* 2: DA's power up, normal speed, RSTN#=0 */
-		// 0x02, 0x2e, /* quad speed */
+		0x02, 0x4e, /* 2: DA's power up, normal speed, RSTN#=0 */
+		// 0x02, 0x6e, /* quad speed */
 		0x03, 0x01, /* 3: de-emphasis off */
 		0x04, 0x00, /* 4: LOUT1 volume muted */
 		0x05, 0x00, /* 5: ROUT1 volume muted */
diff --git a/sound/pci/ice1712/revo.c b/sound/pci/ice1712/revo.c
index 4d26314..30b5e83 100644
--- a/sound/pci/ice1712/revo.c
+++ b/sound/pci/ice1712/revo.c
@@ -216,6 +216,7 @@ static const struct snd_akm4xxx_dac_channel revo51_dac[] = {
 	AK_DAC("PCM Center Playback Volume", 1),
 	AK_DAC("PCM LFE Playback Volume", 1),
 	AK_DAC("PCM Rear Playback Volume", 2),
+	AK_DAC("PCM Headphone Volume", 2),
 };
 
 static const char *revo51_adc_input_names[] = {
@@ -279,7 +280,7 @@ static struct snd_ak4xxx_private akm_revo_surround_priv __devinitdata = {
 
 static struct snd_akm4xxx akm_revo51 __devinitdata = {
 	.type = SND_AK4358,
-	.num_dacs = 6,
+	.num_dacs = 8,
 	.ops = {
 		.set_rate_val = revo_set_rate_val
 	},
@@ -508,7 +509,7 @@ static int __devinit revo_init(struct snd_ice1712 *ice)
 		ice->gpio.i2s_mclk_changed = revo_i2s_mclk_changed;
 		break;
 	case VT1724_SUBDEVICE_REVOLUTION51:
-		ice->num_total_dacs = 6;
+		ice->num_total_dacs = 8;
 		ice->num_total_adcs = 2;
 		break;
 	case VT1724_SUBDEVICE_AUDIOPHILE192:

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] revo51: add headphone output
  2008-08-21  4:28 [PATCH] revo51: add headphone output Alexander Beregalov
@ 2008-08-21  7:14 ` Pavel Hofman
  2008-08-21  9:07   ` Takashi Iwai
  2008-08-21  9:07 ` Takashi Iwai
  1 sibling, 1 reply; 5+ messages in thread
From: Pavel Hofman @ 2008-08-21  7:14 UTC (permalink / raw)
  To: Alexander Beregalov; +Cc: tiwai, alsa-devel

Alexander Beregalov wrote:
>  It is ALSA bug #1754.
>  D6 bit in 02 register is PW4.
> 
> Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
> ---
> 
>  sound/i2c/other/ak4xxx-adda.c |    4 ++--
>  sound/pci/ice1712/revo.c      |    5 +++--
>  2 files changed, 5 insertions(+), 4 deletions(-)
> 
> diff --git a/sound/i2c/other/ak4xxx-adda.c b/sound/i2c/other/ak4xxx-adda.c
> index 288926d..4c94458 100644
> --- a/sound/i2c/other/ak4xxx-adda.c
> +++ b/sound/i2c/other/ak4xxx-adda.c
> @@ -233,8 +233,8 @@ void snd_akm4xxx_init(struct snd_akm4xxx *ak)
>  		0x01, 0x02, /* 1: reset and soft-mute */
>  		0x00, 0x06, /* 0: mode3(i2s), disable auto-clock detect,
>  			     * disable DZF, sharp roll-off, RSTN#=0 */
> -		0x02, 0x0e, /* 2: DA's power up, normal speed, RSTN#=0 */
> -		// 0x02, 0x2e, /* quad speed */
> +		0x02, 0x4e, /* 2: DA's power up, normal speed, RSTN#=0 */
> +		// 0x02, 0x6e, /* quad speed */

Fantastic, I guess this could help to fix the problem with 
non-functioning monitoring in ESI Juli@ too. I did not notice the fourth 
DAC was powered down. Thanks a lot!

Pavel.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] revo51: add headphone output
  2008-08-21  4:28 [PATCH] revo51: add headphone output Alexander Beregalov
  2008-08-21  7:14 ` Pavel Hofman
@ 2008-08-21  9:07 ` Takashi Iwai
  1 sibling, 0 replies; 5+ messages in thread
From: Takashi Iwai @ 2008-08-21  9:07 UTC (permalink / raw)
  To: Alexander Beregalov; +Cc: alsa-devel, voss

At Thu, 21 Aug 2008 08:28:42 +0400,
Alexander Beregalov wrote:
> 
> 
>  It is ALSA bug #1754.
>  D6 bit in 02 register is PW4.
> 
> Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>

Thanks, applied now (with a slight correction of C++ comments). 


Takashi

> ---
> 
>  sound/i2c/other/ak4xxx-adda.c |    4 ++--
>  sound/pci/ice1712/revo.c      |    5 +++--
>  2 files changed, 5 insertions(+), 4 deletions(-)
> 
> diff --git a/sound/i2c/other/ak4xxx-adda.c b/sound/i2c/other/ak4xxx-adda.c
> index 288926d..4c94458 100644
> --- a/sound/i2c/other/ak4xxx-adda.c
> +++ b/sound/i2c/other/ak4xxx-adda.c
> @@ -233,8 +233,8 @@ void snd_akm4xxx_init(struct snd_akm4xxx *ak)
>  		0x01, 0x02, /* 1: reset and soft-mute */
>  		0x00, 0x06, /* 0: mode3(i2s), disable auto-clock detect,
>  			     * disable DZF, sharp roll-off, RSTN#=0 */
> -		0x02, 0x0e, /* 2: DA's power up, normal speed, RSTN#=0 */
> -		// 0x02, 0x2e, /* quad speed */
> +		0x02, 0x4e, /* 2: DA's power up, normal speed, RSTN#=0 */
> +		// 0x02, 0x6e, /* quad speed */
>  		0x03, 0x01, /* 3: de-emphasis off */
>  		0x04, 0x00, /* 4: LOUT1 volume muted */
>  		0x05, 0x00, /* 5: ROUT1 volume muted */
> diff --git a/sound/pci/ice1712/revo.c b/sound/pci/ice1712/revo.c
> index 4d26314..30b5e83 100644
> --- a/sound/pci/ice1712/revo.c
> +++ b/sound/pci/ice1712/revo.c
> @@ -216,6 +216,7 @@ static const struct snd_akm4xxx_dac_channel revo51_dac[] = {
>  	AK_DAC("PCM Center Playback Volume", 1),
>  	AK_DAC("PCM LFE Playback Volume", 1),
>  	AK_DAC("PCM Rear Playback Volume", 2),
> +	AK_DAC("PCM Headphone Volume", 2),
>  };
>  
>  static const char *revo51_adc_input_names[] = {
> @@ -279,7 +280,7 @@ static struct snd_ak4xxx_private akm_revo_surround_priv __devinitdata = {
>  
>  static struct snd_akm4xxx akm_revo51 __devinitdata = {
>  	.type = SND_AK4358,
> -	.num_dacs = 6,
> +	.num_dacs = 8,
>  	.ops = {
>  		.set_rate_val = revo_set_rate_val
>  	},
> @@ -508,7 +509,7 @@ static int __devinit revo_init(struct snd_ice1712 *ice)
>  		ice->gpio.i2s_mclk_changed = revo_i2s_mclk_changed;
>  		break;
>  	case VT1724_SUBDEVICE_REVOLUTION51:
> -		ice->num_total_dacs = 6;
> +		ice->num_total_dacs = 8;
>  		ice->num_total_adcs = 2;
>  		break;
>  	case VT1724_SUBDEVICE_AUDIOPHILE192:
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] revo51: add headphone output
  2008-08-21  7:14 ` Pavel Hofman
@ 2008-08-21  9:07   ` Takashi Iwai
  2008-08-21 10:09     ` Pavel Hofman
  0 siblings, 1 reply; 5+ messages in thread
From: Takashi Iwai @ 2008-08-21  9:07 UTC (permalink / raw)
  To: Pavel Hofman; +Cc: alsa-devel, Alexander Beregalov

At Thu, 21 Aug 2008 09:14:21 +0200,
Pavel Hofman wrote:
> 
> Alexander Beregalov wrote:
> >  It is ALSA bug #1754.
> >  D6 bit in 02 register is PW4.
> > 
> > Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
> > ---
> > 
> >  sound/i2c/other/ak4xxx-adda.c |    4 ++--
> >  sound/pci/ice1712/revo.c      |    5 +++--
> >  2 files changed, 5 insertions(+), 4 deletions(-)
> > 
> > diff --git a/sound/i2c/other/ak4xxx-adda.c b/sound/i2c/other/ak4xxx-adda.c
> > index 288926d..4c94458 100644
> > --- a/sound/i2c/other/ak4xxx-adda.c
> > +++ b/sound/i2c/other/ak4xxx-adda.c
> > @@ -233,8 +233,8 @@ void snd_akm4xxx_init(struct snd_akm4xxx *ak)
> >  		0x01, 0x02, /* 1: reset and soft-mute */
> >  		0x00, 0x06, /* 0: mode3(i2s), disable auto-clock detect,
> >  			     * disable DZF, sharp roll-off, RSTN#=0 */
> > -		0x02, 0x0e, /* 2: DA's power up, normal speed, RSTN#=0 */
> > -		// 0x02, 0x2e, /* quad speed */
> > +		0x02, 0x4e, /* 2: DA's power up, normal speed, RSTN#=0 */
> > +		// 0x02, 0x6e, /* quad speed */
> 
> Fantastic, I guess this could help to fix the problem with 
> non-functioning monitoring in ESI Juli@ too. I did not notice the fourth 
> DAC was powered down. Thanks a lot!

Maybe we need a change like in revo.c for Juli@, too?


Takashi

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] revo51: add headphone output
  2008-08-21  9:07   ` Takashi Iwai
@ 2008-08-21 10:09     ` Pavel Hofman
  0 siblings, 0 replies; 5+ messages in thread
From: Pavel Hofman @ 2008-08-21 10:09 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel, Alexander Beregalov

Takashi Iwai wrote:
> At Thu, 21 Aug 2008 09:14:21 +0200,
> Pavel Hofman wrote:
>> Alexander Beregalov wrote:
>>>  It is ALSA bug #1754.
>>>  D6 bit in 02 register is PW4.
>>>
>>> Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
>>> ---
>>>
>>>  sound/i2c/other/ak4xxx-adda.c |    4 ++--
>>>  sound/pci/ice1712/revo.c      |    5 +++--
>>>  2 files changed, 5 insertions(+), 4 deletions(-)
>>>
>>> diff --git a/sound/i2c/other/ak4xxx-adda.c b/sound/i2c/other/ak4xxx-adda.c
>>> index 288926d..4c94458 100644
>>> --- a/sound/i2c/other/ak4xxx-adda.c
>>> +++ b/sound/i2c/other/ak4xxx-adda.c
>>> @@ -233,8 +233,8 @@ void snd_akm4xxx_init(struct snd_akm4xxx *ak)
>>>  		0x01, 0x02, /* 1: reset and soft-mute */
>>>  		0x00, 0x06, /* 0: mode3(i2s), disable auto-clock detect,
>>>  			     * disable DZF, sharp roll-off, RSTN#=0 */
>>> -		0x02, 0x0e, /* 2: DA's power up, normal speed, RSTN#=0 */
>>> -		// 0x02, 0x2e, /* quad speed */
>>> +		0x02, 0x4e, /* 2: DA's power up, normal speed, RSTN#=0 */
>>> +		// 0x02, 0x6e, /* quad speed */
>> Fantastic, I guess this could help to fix the problem with 
>> non-functioning monitoring in ESI Juli@ too. I did not notice the fourth 
>> DAC was powered down. Thanks a lot!
> 
> Maybe we need a change like in revo.c for Juli@, too?
> 
> 
> Takashi

>From what I understand, the changes in revo.c:

@@ -216,6 +216,7 @@ static const struct snd_akm4xxx_dac_channel 
revo51_dac[] = {
  	AK_DAC("PCM Center Playback Volume", 1),
  	AK_DAC("PCM LFE Playback Volume", 1),
  	AK_DAC("PCM Rear Playback Volume", 2),
+	AK_DAC("PCM Headphone Volume", 2),
  };

Already in juli.c, monitors volume.

  static struct snd_akm4xxx akm_revo51 __devinitdata = {
  	.type = SND_AK4358,
-	.num_dacs = 6,
+	.num_dacs = 8,
  	.ops = {

Important, already in juli.c



@@ -508,7 +509,7 @@ static int __devinit revo_init(struct snd_ice1712 *ice)
  		ice->gpio.i2s_mclk_changed = revo_i2s_mclk_changed;
  		break;
  	case VT1724_SUBDEVICE_REVOLUTION51:
-		ice->num_total_dacs = 6;
+		ice->num_total_dacs = 8;
  		ice->num_total_adcs = 2;
  		break;

Enables additional snd_vt1724_mixer_pro_analog_route controls for the 
new channels, we do not need them in Juli monitoring (ice1724 does not 
process these channels, their i2s lines go straight from adc/spdif 
receiver to the DAC chip via the Xilinx FPGA array.

I do not have the card available anymore, perhaps anyone could please check?

Thanks,

Pavel.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-08-21 10:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-21  4:28 [PATCH] revo51: add headphone output Alexander Beregalov
2008-08-21  7:14 ` Pavel Hofman
2008-08-21  9:07   ` Takashi Iwai
2008-08-21 10:09     ` Pavel Hofman
2008-08-21  9:07 ` Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.