alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Raymond Yau <superquad.vortex2@gmail.com>
To: alsa-devel@alsa-project.org
Subject: Re: Verifying mixer dB data/Invalid dB data from USB cards, especially Aureon 5.1 MkII
Date: Tue, 23 Feb 2010 12:47:50 +0800	[thread overview]
Message-ID: <4f3252891002222047g33ecdb74qce6a997ea5792c0@mail.gmail.com> (raw)
In-Reply-To: <20100221193933.GA31800@tango.0pointer.de>

2010/2/22 Lennart Poettering <mznyfn@0pointer.de>

> On Sun, 21.02.10 11:49, Raymond Yau (superquad.vortex2@gmail.com) wrote:
>
> > The most common onboard audio is HDA so this is not any exceptional cases
> >
> > Those HDA multi streaming  feature are most users wanted in desktop
> > enviornment, are pulseaudio really designed for deskop or just only for
> > notebook and mobile ?
> >
> > The front panel green/pink jack can be used by one application while the
> > rear panel audio jacks can be used to another application for surround or
> > mic for karaoke
>
> I am not entirely convinced that this is really a common case.
>

VT17xx codec already support independent HP mode

http://git.alsa-project.org/?p=alsa-kernel.git;a=commit;h=cdc1784d49258198df600fbc1d37c07d7eee5ed6

**** List of PLAYBACK Hardware Devices ****

card 0: SB [HDA ATI SB], device 0: VT1708S Analog [VT1708S Analog]
  Subdevices: 1/2
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
card 0: SB [HDA ATI SB], device 1: VT1708S Digital [VT1708S Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0


**** List of CAPTURE Hardware Devices ****
card 0: SB [HDA ATI SB], device 0: VT1708S Analog [VT1708S Analog]
  Subdevices: 2/2
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1



AD1988B 10 channels codec  on my ASUS P5BV  already has 3 capture subdevices

**** List of CAPTURE Hardware Devices ****
card 0: Intel [HDA Intel], device 0: AD198x Analog [AD198x Analog]
  Subdevices: 3/3
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
card 0: Intel [HDA Intel], device 1: AD198x Digital [AD198x Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0


http://www.analog.com/en/audiovideo-products/audio-codecs/ad1988b/products/product.html

The AD1988A and AD1988B have 10 DACs and 6 ADCs,
Analog mixer supports recording and playback of signals from multiple
sources

ALC88x

**** List of CAPTURE Hardware Devices ****
card 0: VT82xx [HDA VIA VT82xx], device 0: ALC888 Analog [ALC888 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: VT82xx [HDA VIA VT82xx], device 2: ALC888 Analog [ALC888 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0



Do any PA developer has a desktop computer  with HDA audio ?



> But anyway, there is nothing in PA that would limit it to not use
> multiple parallel devices of a sound card at the same time, with the
> exception that ALSA currently has no enumeration API which could
> inform us which uses of the card are exclusive each other and which
> ones are not. PA currently tries to open the sound card in all
> combinations possible, assuming that EBUSY means it found an invalid
> combination. If one day ALSA gains an API that allows figuring out
> which combinations of streams are possible and which ones are not, I
> am happy to reinvestigate the whole issue.
>
> >  Send a game's sound through 5.1 speakers while the Internet chatting
> audio
> > is sent through your headset.
>
> More often than not you'd probably use two seperate cards for that.
>
> > Send a DVD movie with 5.1 audio to a surround sound system in the living
> > room, while you listen to digital music and surf the Web on the PC.
>
> I somehow doubt that this is the most common of use cases we need to
> care about.
>
> > THe point is that PA release/close the device (suspend on idle) , if
> another
> > application using the subdevice 0 before PA resume/reopen, PA will open
> > subdevice 1 and cannot find the correct capture volume control and user
> will
> > complain they cannot record
> >
> > Since PA did not check the subdevice number to find the correct mixer
> > control
>
> I'd certainly check the subdevice id if the smixer API would supply me
> with it.
>

if ( snd_pcm_info_get_subdevices_count(pcm_info) > 1 ) && (
snd_pcm_info_get_subdevices_count(pcm_info) < 8 ))

snd_mixer_selem_id_set_index(sid, snd_pcm_info_get_subdevice(pcm_info));



>
> Lennart
>
>

  parent reply	other threads:[~2010-02-23  4:47 UTC|newest]

Thread overview: 91+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-15 19:24 Verifying mixer dB data/Invalid dB data from USB cards, especially Aureon 5.1 MkII Lennart Poettering
2010-02-16  8:08 ` Clemens Ladisch
2010-02-16  8:24   ` Jaroslav Kysela
2010-02-16 14:32     ` Lennart Poettering
2010-02-16 14:40       ` Mark Brown
2010-02-16 15:40         ` Lennart Poettering
2010-02-16 15:49           ` Mark Brown
2010-02-16 16:29           ` Jaroslav Kysela
2010-02-16 21:07             ` Lennart Poettering
2010-02-16 22:39               ` Mark Brown
2010-02-16 22:42                 ` Lennart Poettering
2010-02-16 23:38                   ` Mark Brown
2010-02-16 23:56                     ` Lennart Poettering
2010-02-17 11:17                       ` Mark Brown
2010-02-17 13:01                         ` Lennart Poettering
2010-02-17 13:15                           ` Mads Kiilerich
2010-02-17 11:55                       ` James Courtier-Dutton
2010-02-17 13:06                         ` Mark Brown
2010-03-20  7:58                         ` Raymond Yau
2010-02-18  1:48                       ` Raymond Yau
2010-02-18  2:37                         ` Lennart Poettering
2010-02-18  6:15                           ` Raymond Yau
2010-02-18 10:11                             ` James Courtier-Dutton
2010-02-18 18:13                             ` Lennart Poettering
2010-02-19  8:17                               ` Jaroslav Kysela
2010-02-19  9:40                                 ` Mark Brown
2010-02-19 10:57                                 ` Raymond Yau
2010-02-19 15:13                                   ` Lennart Poettering
2010-02-21  3:49                                     ` Raymond Yau
     [not found]                                       ` <20100221193933.GA31800@tango.0pointer.de>
2010-02-23  4:47                                         ` Raymond Yau [this message]
2010-02-23 22:20                                           ` Lennart Poettering
2010-02-24  1:52                                             ` Raymond Yau
2010-02-28  7:32                                             ` Raymond Yau
2010-02-23  5:12                                         ` Raymond Yau
2010-02-23  8:43                                         ` Raymond Yau
2010-02-21  4:01                                     ` Raymond Yau
     [not found]                                       ` <20100221192951.GD30380@tango.0pointer.de>
2010-02-23 10:08                                         ` Clemens Ladisch
2010-02-23 12:46                                           ` Raymond Yau
2010-02-23 22:32                                           ` Lennart Poettering
2010-02-24  0:57                                             ` Raymond Yau
2010-02-24  9:00                                             ` Clemens Ladisch
2010-02-24 11:49                                               ` Raymond Yau
2010-02-24 12:07                                               ` Raymond Yau
2010-02-24  1:12                                           ` Raymond Yau
2010-02-24  3:49                                           ` Raymond Yau
2010-02-20  8:38                                   ` Jaroslav Kysela
2010-02-25  3:34                                     ` Raymond Yau
2010-02-19 11:47                                 ` James Courtier-Dutton
2010-02-19 15:10                                   ` Lennart Poettering
2010-02-20  8:41                                   ` Jaroslav Kysela
2010-02-24  7:30                                     ` Raymond Yau
2010-02-25 13:14                               ` Raymond Yau
2010-02-25  3:51                           ` Raymond Yau
2010-02-26  3:17                       ` Raymond Yau
2010-03-01  4:21                       ` Raymond Yau
2010-02-16 23:47                   ` Eliot Blennerhassett
2010-02-17  0:10                     ` Lennart Poettering
2010-02-17  0:43                       ` Mark Brown
2010-02-17  0:52                       ` Eliot Blennerhassett
2010-02-17 11:50                         ` Mark Brown
2010-02-17  9:04                       ` Jaroslav Kysela
2010-02-17 12:06                         ` Mark Brown
2010-02-17 13:15                           ` Lennart Poettering
2010-02-17 13:32                             ` Mark Brown
2010-02-17 13:06                         ` Lennart Poettering
2010-02-17 13:55                           ` James Courtier-Dutton
2010-02-17 14:12                             ` Mark Brown
2010-02-17 14:35                             ` Lennart Poettering
2010-02-17 16:17                               ` James Courtier-Dutton
2010-02-26  9:38                             ` Raymond Yau
2010-02-17  7:37                     ` Raymond Yau
2010-02-18  2:11                     ` Raymond Yau
2010-02-26  0:45               ` Raymond Yau
2010-02-20  7:24             ` Raymond Yau
2010-03-26  4:26             ` Raymond Yau
2010-02-16 21:48           ` James Courtier-Dutton
2010-02-17  8:08             ` Jaroslav Kysela
2010-06-14  3:30         ` Raymond Yau
2010-02-16 16:09       ` Jaroslav Kysela
2010-02-16 14:26   ` Lennart Poettering
2010-02-17  3:30     ` Raymond Yau
2010-02-17 15:19       ` Lennart Poettering
2010-03-08  9:06         ` Raymond Yau
2010-02-16  8:32 ` Jaroslav Kysela
2010-02-16 10:36   ` Jaroslav Kysela
2010-02-17  3:44 ` Raymond Yau
2010-02-17 12:54   ` Lennart Poettering
2010-02-26  5:18 ` Raymond Yau
2010-02-27  1:07 ` Raymond Yau
2010-03-01  0:51 ` Raymond Yau
2010-06-24 22:51 ` Raymond Yau

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=4f3252891002222047g33ecdb74qce6a997ea5792c0@mail.gmail.com \
    --to=superquad.vortex2@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).