All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sergej Sawazki <ssawazki@gmx.de>
To: Lars-Peter Clausen <lars@metafoo.de>
Cc: alsa-devel@alsa-project.org
Subject: Re: ASoC machine driver: how to configure supported frame rates?
Date: Fri, 10 Oct 2014 22:42:53 +0200	[thread overview]
Message-ID: <543844CD.6010409@gmx.de> (raw)
In-Reply-To: <5438256D.8040605@metafoo.de>


Am 10.10.2014 um 20:29 schrieb Lars-Peter Clausen:
> On 10/10/2014 06:12 PM, Sergej Sawazki wrote:
>> Dear all,
>>
>> I'm writing an ALSA SoC machine driver. The codec on my board, as well
>> as the cpu do support the following rates: SNDRV_PCM_RATE_8000_192000
>>
>> However, the codec, as well as the cpu are clock slaves and the clocks
>> are fixed. Hence, my board does only support the 96kHz sample rate.
>>
>> Can someone give me some advice on how to tell ALSA that my board does
>> only support the rate SNDRV_PCM_RATE_96000?
>> I don't want to modify the codec and the platform driver.
>>
>> Any help would be highly appreciated.  Thanks!
>
> You can apply additional constraints in the startup callback of the
> snd_soc_ops of DAI link in your board driver.
>
> For example see sound/soc/samsung/h1940_uda1380.c
>
> - Lars
>
Lars, thanks for you help. It is working.

- Sergej

      reply	other threads:[~2014-10-10 20:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-10 16:12 ASoC machine driver: how to configure supported frame rates? Sergej Sawazki
2014-10-10 18:29 ` Lars-Peter Clausen
2014-10-10 20:42   ` Sergej Sawazki [this message]

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=543844CD.6010409@gmx.de \
    --to=ssawazki@gmx.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=lars@metafoo.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.