Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1700971

Re: [alsa-devel] [PATCH v2 2/2] drm/bridge: adv7511: restrict audio sample sizes

From Mark Brown <broonie@kernel.org>
Newsgroups linux.kernel
Subject Re: [alsa-devel] [PATCH v2 2/2] drm/bridge: adv7511: restrict audio sample sizes
Date 2017-08-01 14:30 +0200
Message-ID <u9Etd-3XT-23@gated-at.bofh.it> (permalink)
References <u9rFD-3CI-1@gated-at.bofh.it> <u9rPk-3Gg-27@gated-at.bofh.it> <u9B2h-Ya-3@gated-at.bofh.it> <u9Etd-3XT-25@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Tue, Aug 01, 2017 at 01:24:03PM +0100, Srinivas Kandagatla wrote:
> On 01/08/17 09:42, Arnaud Pouliquen wrote:
> > On 08/01/2017 12:49 AM, srinivas.kandagatla@linaro.org wrote:

> > I already used ADV7513 and i did not observe this limitation.

> > I had a look to ADV7533 data-sheet. it should support 32 and 64 bits I2S

> ADV7511_REG_AUDIO_CFG3(0x14) register definition in datasheet and the code
> in this driver suggest that It only supports 16Bit and 24Bit samples.

The amount of data it pays attention to in the frame is not the same as
the size of the frame.

> > format bus, with 16 or 24 bits precision sample. So it should support
> > SNDRV_PCM_FMTBIT_S32_LE and SNDRV_PCM_FMTBIT_S32_BE

> > As example, if you configure bus in Left justified format with 24 bits
> > sample length, 32 bits application samples should be truncated to 24
> > bits samples at ADV7533 I2S interface level (LSB dropped).

> May be we can do that to make the user happy but isn't this just truncate
> the resolution to 24Bit then?

> And it's a false indication that we are supporting 32bit samples.
> Which am not very happy with.

This is what the sample_bits field in the DAI structure is for.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 0/2] ASoC: hdmi-codec: Allow driver to restrict sample size srinivas.kandagatla@linaro.org - 2017-08-01 00:50 +0200
  [PATCH v2 2/2] drm/bridge: adv7511: restrict audio sample sizes srinivas.kandagatla@linaro.org - 2017-08-01 01:00 +0200
    Re: [alsa-devel] [PATCH v2 2/2] drm/bridge: adv7511: restrict audio  sample sizes Arnaud Pouliquen <arnaud.pouliquen@st.com> - 2017-08-01 10:50 +0200
      Re: [alsa-devel] [PATCH v2 2/2] drm/bridge: adv7511: restrict audio  sample sizes Mark Brown <broonie@kernel.org> - 2017-08-01 14:30 +0200
        Re: [alsa-devel] [PATCH v2 2/2] drm/bridge: adv7511: restrict audio  sample sizes Srinivas Kandagatla <srinivas.kandagatla@linaro.org> - 2017-08-01 15:00 +0200
          Re: [alsa-devel] [PATCH v2 2/2] drm/bridge: adv7511: restrict audio  sample sizes Mark Brown <broonie@kernel.org> - 2017-08-01 15:20 +0200
          Re: [alsa-devel] [PATCH v2 2/2] drm/bridge: adv7511: restrict audio  sample sizes Arnaud Pouliquen <arnaud.pouliquen@st.com> - 2017-08-01 18:00 +0200
      Re: [alsa-devel] [PATCH v2 2/2] drm/bridge: adv7511: restrict audio  sample sizes Srinivas Kandagatla <srinivas.kandagatla@linaro.org> - 2017-08-01 14:30 +0200
  [PATCH v2 1/2] ASoC: hdmi-codec: Allow drivers to restrict sample sizes. srinivas.kandagatla@linaro.org - 2017-08-01 01:00 +0200

csiph-web