Re: [PATCH v2] ASoC: au1x: declare that FIFO is reported in frames

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

On Mon, Apr 1, 2024 at 10:11 PM Oswald Buddenhagen
<oswald.buddenhagen@xxxxxx> wrote:
>
> Signed-off-by: Oswald Buddenhagen <oswald.buddenhagen@xxxxxx>
> ---
>
> Is this right? The comment on the field says "fifo entries of AC97/I2S
> PSC", which doesn't suggest bytes. The data sheet speaks of "words" and
> "byte masks", but without digging into it I can't tell how it would
> behave with different sample widths and channel counts (which the driver
> does not seem to limit _at all_? what am I missing?).

Each fifo entry contains a sample; wordsize is configured in register
0x08[24:21].
The fifo is 16 samples deep, so you can have 8 stereo frames or 16
mono frames queued up.
But the fifo isn't managed by hand, dma transfers are used instead and
the amount
of transmitted bytes is extracted from DMA information, so I think this change
is pointless.

Manuel




[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux