* [PATCH] cm6206: turn off de-emphasis in s/pdif
@ 2010-11-17 0:22 Eric Lammerts
2010-11-17 0:43 ` Adrian Pardini
2010-11-18 9:11 ` Clemens Ladisch
0 siblings, 2 replies; 7+ messages in thread
From: Eric Lammerts @ 2010-11-17 0:22 UTC (permalink / raw)
To: alsa-devel, Dan Allongo
Hi,
I just bought a device with a CM6206. Thank you for the quirk that
made it work out-of-the-box! I noticed on my DAC that the de-emphasis
LED was on. Is this by accident? Below is a patch (based on the info
in the CM6206+datasheet+1.7.pdf that I found somewhere) that turns it
off.
cheers,
Eric
Index: linux-2.6.36/sound/usb/quirks.c
===================================================================
--- linux-2.6.36.orig/sound/usb/quirks.c 2010-11-16 18:55:51.000000000 -0500
+++ linux-2.6.36/sound/usb/quirks.c 2010-11-16 18:55:57.000000000 -0500
@@ -387,7 +387,7 @@
static int snd_usb_cm6206_boot_quirk(struct usb_device *dev)
{
int err, reg;
- int val[] = {0x200c, 0x3000, 0xf800, 0x143f, 0x0000, 0x3000};
+ int val[] = {0x2004, 0x3000, 0xf800, 0x143f, 0x0000, 0x3000};
for (reg = 0; reg < ARRAY_SIZE(val); reg++) {
err = snd_usb_cm106_write_int_reg(dev, reg, val[reg]);
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] cm6206: turn off de-emphasis in s/pdif
2010-11-17 0:22 [PATCH] cm6206: turn off de-emphasis in s/pdif Eric Lammerts
@ 2010-11-17 0:43 ` Adrian Pardini
2010-11-17 3:24 ` Eric Lammerts
2010-11-18 9:11 ` Clemens Ladisch
1 sibling, 1 reply; 7+ messages in thread
From: Adrian Pardini @ 2010-11-17 0:43 UTC (permalink / raw)
To: Eric Lammerts; +Cc: Dan Allongo, alsa-devel
On 16/11/2010, Eric Lammerts <alsa-devel@lists.lammerts.org> wrote:
>
> Hi,
> I just bought a device with a CM6206. Thank you for the quirk that
> made it work out-of-the-box! I noticed on my DAC that the de-emphasis
> LED was on. Is this by accident? Below is a patch (based on the info
> in the CM6206+datasheet+1.7.pdf that I found somewhere) that turns it
> off.
>
Hi all, I have to resubmit some patches for the same chip related to
headphone support. Will you find it useful if I added the de-emphasis
control as a mixer switch?
cheers.
--
Adrian.
http://ovejafm.com
http://elesquinazotango.com.ar
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] cm6206: turn off de-emphasis in s/pdif
2010-11-17 0:43 ` Adrian Pardini
@ 2010-11-17 3:24 ` Eric Lammerts
0 siblings, 0 replies; 7+ messages in thread
From: Eric Lammerts @ 2010-11-17 3:24 UTC (permalink / raw)
To: Adrian Pardini; +Cc: Dan Allongo, alsa-devel
On Tue, 16 Nov 2010, Adrian Pardini wrote:
> Hi all, I have to resubmit some patches for the same chip related to
> headphone support. Will you find it useful if I added the de-emphasis
> control as a mixer switch?
I don't think it would add that much value, pre-emphasis is hardly
ever used. And if there are applications that care about it, they
probably can handle it in software, since many drivers don't have
such a mixer switch.
If you do make it a mixer switch, I would appreciate it if the
default is "off" :-).
Eric
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] cm6206: turn off de-emphasis in s/pdif
2010-11-17 0:22 [PATCH] cm6206: turn off de-emphasis in s/pdif Eric Lammerts
2010-11-17 0:43 ` Adrian Pardini
@ 2010-11-18 9:11 ` Clemens Ladisch
2010-11-22 1:23 ` Eric Lammerts
2010-11-22 12:51 ` Takashi Iwai
1 sibling, 2 replies; 7+ messages in thread
From: Clemens Ladisch @ 2010-11-18 9:11 UTC (permalink / raw)
To: Eric Lammerts; +Cc: Dan Allongo, alsa-devel
Eric Lammerts wrote:
> I noticed on my DAC that the de-emphasis LED was on. Is this by
> accident?
Probably. The mechanism to set the S/PDIF status bits should be added
to the driver, but as long as we do not have that, setting this bit by
default is silly.
> Below is a patch that turns it off.
Thanks. Please provide a Signed-off-by tag as described in
Documentation/SubmittingPatches.
Regards,
Clemens
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] cm6206: turn off de-emphasis in s/pdif
2010-11-18 9:11 ` Clemens Ladisch
@ 2010-11-22 1:23 ` Eric Lammerts
2010-11-22 12:51 ` Takashi Iwai
1 sibling, 0 replies; 7+ messages in thread
From: Eric Lammerts @ 2010-11-22 1:23 UTC (permalink / raw)
To: Clemens Ladisch; +Cc: Dan Allongo, alsa-devel
On Thu, 18 Nov 2010, Clemens Ladisch wrote:
> Thanks. Please provide a Signed-off-by tag as described in
> Documentation/SubmittingPatches.
CM6206: Turn off de-emphasis channel status bit in S/PDIF output.
Signed-off-by: Eric Lammerts <eric@lammerts.org>
diff --git a/sound/usb/quirks.c b/sound/usb/quirks.c
index cf8bf08..3e9d870 100644
--- a/sound/usb/quirks.c
+++ b/sound/usb/quirks.c
@@ -387,7 +387,7 @@ static int snd_usb_cm106_boot_quirk(struct usb_device *dev)
static int snd_usb_cm6206_boot_quirk(struct usb_device *dev)
{
int err, reg;
- int val[] = {0x200c, 0x3000, 0xf800, 0x143f, 0x0000, 0x3000};
+ int val[] = {0x2004, 0x3000, 0xf800, 0x143f, 0x0000, 0x3000};
for (reg = 0; reg < ARRAY_SIZE(val); reg++) {
err = snd_usb_cm106_write_int_reg(dev, reg, val[reg]);
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] cm6206: turn off de-emphasis in s/pdif
2010-11-18 9:11 ` Clemens Ladisch
2010-11-22 1:23 ` Eric Lammerts
@ 2010-11-22 12:51 ` Takashi Iwai
2010-11-22 15:42 ` Clemens Ladisch
1 sibling, 1 reply; 7+ messages in thread
From: Takashi Iwai @ 2010-11-22 12:51 UTC (permalink / raw)
To: Clemens Ladisch; +Cc: Eric Lammerts, alsa-devel, Dan Allongo
At Thu, 18 Nov 2010 10:11:11 +0100,
Clemens Ladisch wrote:
>
> Eric Lammerts wrote:
> > I noticed on my DAC that the de-emphasis LED was on. Is this by
> > accident?
>
> Probably. The mechanism to set the S/PDIF status bits should be added
> to the driver, but as long as we do not have that, setting this bit by
> default is silly.
Clemens, would you implement this?
Providing the IEC958 status control must be easy, but the problem
is rather alsa-lib config...
thanks,
Takashi
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] cm6206: turn off de-emphasis in s/pdif
2010-11-22 12:51 ` Takashi Iwai
@ 2010-11-22 15:42 ` Clemens Ladisch
0 siblings, 0 replies; 7+ messages in thread
From: Clemens Ladisch @ 2010-11-22 15:42 UTC (permalink / raw)
To: Takashi Iwai; +Cc: Eric Lammerts, alsa-devel, Dan Allongo
Takashi Iwai wrote:
> Clemens Ladisch wrote:
> > Eric Lammerts wrote:
> > > I noticed on my DAC that the de-emphasis LED was on. Is this by
> > > accident?
> >
> > Probably. The mechanism to set the S/PDIF status bits should be added
> > to the driver, but as long as we do not have that, setting this bit by
> > default is silly.
>
> Clemens, would you implement this?
Yes, it's on my TODO list.
Regards,
Clemens
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-11-22 15:40 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-17 0:22 [PATCH] cm6206: turn off de-emphasis in s/pdif Eric Lammerts
2010-11-17 0:43 ` Adrian Pardini
2010-11-17 3:24 ` Eric Lammerts
2010-11-18 9:11 ` Clemens Ladisch
2010-11-22 1:23 ` Eric Lammerts
2010-11-22 12:51 ` Takashi Iwai
2010-11-22 15:42 ` Clemens Ladisch
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.