alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* Re: PCM rules for FireWave in speaker.c
       [not found] <530FFF88.1040606@sakamocchi.jp>
@ 2014-02-28  9:58 ` Clemens Ladisch
  2014-02-28 11:28   ` Takashi Sakamoto
  0 siblings, 1 reply; 2+ messages in thread
From: Clemens Ladisch @ 2014-02-28  9:58 UTC (permalink / raw)
  To: Takashi Sakamoto; +Cc: alsa-devel, Stefan Richter, Jay Fenlason

Takashi Sakamoto wrote:
> Current speaker.c have a rule for PCM channels/rates below:
>  - 6ch PCM at 32.0/44.1kHz
>  - 2ch PCM at 48.0/96.0kHz

The current rules in speakers.c disallow rates less than 48 kHz if there
are less than six channels, and disallow two channels if the rate is
less than 48 kHz.  This means that the allowed parameter combinations
are 2ch at 48/96 kHz, and 6ch at 32/44.1/48/96 kHz.

> Recently, with Jay Fenlason's help, I got some information about its
> stream format. I'll show them in the end of this message.
>
> As a result, I realized FireWave has stream formats below:
>  - 6ch PCM at 32.0/44.1/48.0/96.0kHz
>  - 2ch IEC 60958-3 at 32.0/44.1/48.0kHz
>
> Although there are no stream formats for 2ch PCM at 48.0/96.0kHz, the
> driver has it. Do you know the reason? Are there any model quirks?

I don't have any of the AV/C audio specifications; these rules were
determined experimentally.  In other words, when the sample rate is set
to 48 or 96 kHz, sending a stream with two PCM channels appears to work.

If you wanted to support these undocumented formats in your driver, you
would have to add some kind of quirk.


Regards,
Clemens

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

* Re: PCM rules for FireWave in speaker.c
  2014-02-28  9:58 ` PCM rules for FireWave in speaker.c Clemens Ladisch
@ 2014-02-28 11:28   ` Takashi Sakamoto
  0 siblings, 0 replies; 2+ messages in thread
From: Takashi Sakamoto @ 2014-02-28 11:28 UTC (permalink / raw)
  To: Clemens Ladisch; +Cc: alsa-devel, Stefan Richter, Jay Fenlason

Clemens,

> The current rules in speakers.c disallow rates less than 48 kHz if there
> are less than six channels, and disallow two channels if the rate is
> less than 48 kHz.  This means that the allowed parameter combinations
> are 2ch at 48/96 kHz, and 6ch at 32/44.1/48/96 kHz.

Oh, I misunderstood it...

>> Recently, with Jay Fenlason's help, I got some information about its
>> stream format. I'll show them in the end of this message.
>>
>> As a result, I realized FireWave has stream formats below:
>>   - 6ch PCM at 32.0/44.1/48.0/96.0kHz
>>   - 2ch IEC 60958-3 at 32.0/44.1/48.0kHz
>>
>> Although there are no stream formats for 2ch PCM at 48.0/96.0kHz, the
>> driver has it. Do you know the reason? Are there any model quirks?
>
> I don't have any of the AV/C audio specifications; these rules were
> determined experimentally.  In other words, when the sample rate is set
> to 48 or 96 kHz, sending a stream with two PCM channels appears to work.

OK. You confirmed it.

> If you wanted to support these undocumented formats in your driver, you
> would have to add some kind of quirk.

Exactly. For PCM, I need to add hard-coded rule. On the other hand, I 
want to omit IEC 60958-3 mode because I don't know whether ALSA has 
proper interfaces for it. It will not be PCM.

# I wonder why this mailman sometimes don't deliver my mail...


Thanks

Takashi Sakamoto
o-takashi@sakamocchi.jp

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

end of thread, other threads:[~2014-02-28 11:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <530FFF88.1040606@sakamocchi.jp>
2014-02-28  9:58 ` PCM rules for FireWave in speaker.c Clemens Ladisch
2014-02-28 11:28   ` Takashi Sakamoto

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).