All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sylwester Nawrocki <s.nawrocki@samsung.com>
To: broonie@kernel.org
Cc: devicetree@vger.kernel.org, alsa-devel@alsa-project.org,
	linux-samsung-soc@vger.kernel.org, b.zolnierkie@samsung.com,
	sbkim73@samsung.com, lgirdwood@gmail.com, krzk@kernel.org,
	robh+dt@kernel.org, Sylwester Nawrocki <s.nawrocki@samsung.com>,
	m.szyprowski@samsung.com
Subject: [PATCH 2/5] ASoC: samsung: odroid: Drop sample rates that cannot be supported from hw_params()
Date: Wed, 14 Mar 2018 17:41:14 +0100	[thread overview]
Message-ID: <20180314164115.22736-2-s.nawrocki@samsung.com> (raw)
In-Reply-To: <20180314164115.22736-1-s.nawrocki@samsung.com>

The I2S controller can handle sample rates only up to 96000 and the CPU DAI
has already related constraint set so drop the impossible 176400, 192000
switch cases.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
---
 sound/soc/samsung/odroid.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/sound/soc/samsung/odroid.c b/sound/soc/samsung/odroid.c
index e698e67f5f84..e1b59457a327 100644
--- a/sound/soc/samsung/odroid.c
+++ b/sound/soc/samsung/odroid.c
@@ -46,14 +46,12 @@ static int odroid_card_hw_params(struct snd_pcm_substream *substream,
 		break;
 	case 44100:
 	case 88200:
-	case 176400:
 		pll_freq = 180633609U;
 		rfs = 512;
 		break;
 	case 32000:
 	case 48000:
 	case 96000:
-	case 192000:
 		pll_freq = 196608001U;
 		rfs = 512;
 		break;
-- 
2.14.2

  parent reply	other threads:[~2018-03-14 16:41 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20180314164131epcas2p426aa34f4503ff12fa041a817cdd3eed9@epcas2p4.samsung.com>
2018-03-14 16:41 ` [PATCH 1/5] ASoC: samsung: odroid: Fix 32000 sample rate handling Sylwester Nawrocki
     [not found]   ` <CGME20180314164137epcas2p336d64724b044d14aa920d611b6483593@epcas2p3.samsung.com>
2018-03-14 16:41     ` Sylwester Nawrocki [this message]
2018-03-16  7:30       ` [PATCH 2/5] ASoC: samsung: odroid: Drop sample rates that cannot be supported from hw_params() Krzysztof Kozlowski
2018-03-19  1:47       ` Applied "ASoC: samsung: odroid: Drop sample rates that cannot be supported from hw_params()" to the asoc tree Mark Brown
     [not found]   ` <CGME20180314164141epcas1p43edb2d21ad8818f744b2e11009322996@epcas1p4.samsung.com>
2018-03-14 16:41     ` [PATCH 3/5] ASoC: samsung: Use snd_soc_of_put_dai_link_codecs() in odroid.c Sylwester Nawrocki
2018-03-16  7:33       ` Krzysztof Kozlowski
2018-03-19  1:47       ` Applied "ASoC: samsung: Use snd_soc_of_put_dai_link_codecs() in odroid.c" to the asoc tree Mark Brown
2018-03-16  7:29   ` [PATCH 1/5] ASoC: samsung: odroid: Fix 32000 sample rate handling Krzysztof Kozlowski
2018-03-19  1:47   ` Applied "ASoC: samsung: odroid: Fix 32000 sample rate handling" to the asoc tree Mark Brown

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=20180314164115.22736-2-s.nawrocki@samsung.com \
    --to=s.nawrocki@samsung.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=b.zolnierkie@samsung.com \
    --cc=broonie@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=m.szyprowski@samsung.com \
    --cc=robh+dt@kernel.org \
    --cc=sbkim73@samsung.com \
    /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.