From: Adrian Knoth <adi@drcomp.erfurt.thur.de>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@alsa-project.org
Subject: Re: channel names
Date: Fri, 08 Feb 2013 14:39:16 +0100 [thread overview]
Message-ID: <51150004.7000203@drcomp.erfurt.thur.de> (raw)
In-Reply-To: <s5hbobv8fga.wl%tiwai@suse.de>
On 02/08/2013 07:52 AM, Takashi Iwai wrote:
>> Am I missing something or doesn't ALSA support channel names?
>>
>> When dealing with multichannel interfaces, it's pretty inconvenient to
>> remember whether channel 193 is on MADI 3, AES-EBU or phones.
>>
>> We can address this on the jackd level, however, since OSX allows audio
>> drivers to name their channels, I wonder how to do the same with ALSA?
> It's possible to give some information via the new channel map API,
I'm afraid the channel map may not work for pro-audio interfaces. While
consumer devices will surely benefit from a label like
SNDRV_CHMAP_RRC, /* rear right center */
professional-grade cards simply don't have such channel names.
Instead, "our" channels have names like
ADAT 7
Line 12
Bus 14L
or however else the vendor decided to call (and physically label) them.
That said, we'd probably end up with plenty of new definitions, and we'd
still need the reverse translation from the enum to a string in
userspace.
(NB: Things are so much easier with FFADO, where devices provide a
name vector of strings that's then exposed to jackd.)
How about struct snd_pcm_channel_info?
struct snd_pcm_channel_info {
unsigned int channel;
__kernel_off_t offset; /* mmap offset */
unsigned int first; /* offset to first sample in bits */
unsigned int step; /* samples distance in bits */
};
This looks like the natural place for a new struct member
char name[64];
Maybe there are better places for such an extension, I'm not an ALSA-API
expert.
Do we already agree that verbose strings are useful? At least the Win
and OSX audio guys think so. ;)
Cheers
next prev parent reply other threads:[~2013-02-08 13:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-07 21:23 channel names Adrian Knoth
2013-02-08 6:52 ` Takashi Iwai
2013-02-08 7:07 ` Florian Faber
2013-02-08 13:39 ` Adrian Knoth [this message]
2013-02-08 14:00 ` Clemens Ladisch
2013-02-08 14:05 ` 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=51150004.7000203@drcomp.erfurt.thur.de \
--to=adi@drcomp.erfurt.thur.de \
--cc=alsa-devel@alsa-project.org \
--cc=tiwai@suse.de \
/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.