All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Andy Owen <andy-alsa@ultra-premium.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: [PATCH 2/2] ALSA: ca0106: Fix mixer and dac channel	assignments.
Date: Tue, 21 Sep 2010 17:27:56 +0200	[thread overview]
Message-ID: <s5haanbdslf.wl%tiwai@suse.de> (raw)
In-Reply-To: <1285079096.5919.0.camel@marvin>

At Wed, 22 Sep 2010 00:24:56 +1000,
Andy Owen wrote:
> 
> On Tue, 2010-09-21 at 16:00 +0200, Takashi Iwai wrote:
> > I wonder whether this can regress on other boards.
> > The front channel is the obvious channel so this must have been
> > tested.  Maybe we should change the mapping only for your specific
> > model by adding some flag.
> 
> The behaviour I was seeing was that if I just added the device id, then
> the front channel would work fine, but I would get no sound from the
> rears, and the mixer controls didn't quite match the labels. 

Hrm, but you changed the DAC number of the front channel.  Doesn't change
the front channel behavior...?

> I was a bit suspect of this change:
> 
> > -     if (chip->details->spi_dac && channel_id != PCM_FRONT_CHANNEL) {
> > +     if (chip->details->spi_dac) {
> 
> But I convinced myself that it was a hack to work around the registers
> being wrong in other places, and the card in its default state had the
> front dac already powered up. Looking at the code, I can see similar
> logic in the snd_ca0106_pcm_close_playback() function, which has a
> special case for the front channel, and I think should also be modified.

No, take a look at git commit 485100706b4b397f8072c756839878f634e21f85:

   [ALSA] ca0106: power down SPI DAC channels when not in use
    
    For cards with an SPI DAC (SB Live 24-bit / Audigy SE), power down channels
    0-2 when not in use.  They are powered up on PCM open and down again on PCM
    close.  Channel 4 (== Front) is not powered down, as it is used for capture
    feedback.  Powering it down would effectively kill line in pass-through.
    
So, it's the designed behavior.

Judging from the fact that this mapping hasn't been changed since that
time, I feel that it's not safe to change the mapping unconditionally
for your device.  That's why I suggest for some new flag.


Takashi

  reply	other threads:[~2010-09-21 15:27 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-21 13:51 [PATCH 1/2] ALSA: ca0106 - add Sound Blaster 5.1vx info andy-alsa
2010-09-21 13:51 ` [PATCH 2/2] ALSA: ca0106: Fix mixer and dac channel assignments andy-alsa
2010-09-21 14:00   ` Takashi Iwai
2010-09-21 14:24     ` Andy Owen
2010-09-21 15:27       ` Takashi Iwai [this message]
2010-09-22 14:12         ` Andy Owen
     [not found]         ` <1285164542.1797.54.camel@marvin>
2010-09-22 14:17           ` Takashi Iwai
2010-09-21 13:57 ` [PATCH 1/2] ALSA: ca0106 - add Sound Blaster 5.1vx info Takashi Iwai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=s5haanbdslf.wl%tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=andy-alsa@ultra-premium.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.