linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Garlic Tseng <garlic.tseng@mediatek.com>
To: <broonie@kernel.org>, <tiwai@suse.de>
Cc: <garlic.tseng@mediatek.com>, <srv_heupstream@mediatek.com>,
	<linux-mediatek@lists.infradead.org>,
	<linux-arm-kernel@lists.infradead.org>,
	<linux-kernel@vger.kernel.org>, <alsa-devel@alsa-project.org>,
	<koro.chen@mediatek.com>, <PC.Liao@mediatek.com>,
	<ir.lian@mediatek.com>
Subject: [alsa-devel] [PATCH v4 7/9] ASoC: bt-sco: extend rate and add a general compatible string
Date: Mon, 13 Jun 2016 15:26:44 +0800	[thread overview]
Message-ID: <1465802806-19197-8-git-send-email-garlic.tseng@mediatek.com> (raw)
In-Reply-To: <1465802806-19197-1-git-send-email-garlic.tseng@mediatek.com>

Add supports for 16k (wideband BT) and add a general compatible
string "linux,bt-sco"

Signed-off-by: Garlic Tseng <garlic.tseng@mediatek.com>
---
 Documentation/devicetree/bindings/sound/bt-sco.txt | 2 +-
 sound/soc/codecs/bt-sco.c                          | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/Documentation/devicetree/bindings/sound/bt-sco.txt b/Documentation/devicetree/bindings/sound/bt-sco.txt
index 29b8e5d..641edf7 100644
--- a/Documentation/devicetree/bindings/sound/bt-sco.txt
+++ b/Documentation/devicetree/bindings/sound/bt-sco.txt
@@ -4,7 +4,7 @@ This device support generic Bluetooth SCO link.
 
 Required properties:
 
-  - compatible : "delta,dfbmcs320"
+  - compatible : "delta,dfbmcs320" or "linux,bt-sco"
 
 Example:
 
diff --git a/sound/soc/codecs/bt-sco.c b/sound/soc/codecs/bt-sco.c
index b084ad1..101b384 100644
--- a/sound/soc/codecs/bt-sco.c
+++ b/sound/soc/codecs/bt-sco.c
@@ -31,14 +31,14 @@ static struct snd_soc_dai_driver bt_sco_dai = {
 		.stream_name = "Playback",
 		.channels_min = 1,
 		.channels_max = 1,
-		.rates = SNDRV_PCM_RATE_8000,
+		.rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000,
 		.formats = SNDRV_PCM_FMTBIT_S16_LE,
 	},
 	.capture = {
 		 .stream_name = "Capture",
 		.channels_min = 1,
 		.channels_max = 1,
-		.rates = SNDRV_PCM_RATE_8000,
+		.rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000,
 		.formats = SNDRV_PCM_FMTBIT_S16_LE,
 	},
 };
@@ -77,6 +77,7 @@ MODULE_DEVICE_TABLE(platform, bt_sco_driver_ids);
 #if defined(CONFIG_OF)
 static const struct of_device_id bt_sco_codec_of_match[] = {
 	{ .compatible = "delta,dfbmcs320", },
+	{ .compatible = "linux,bt-sco", },
 	{},
 };
 MODULE_DEVICE_TABLE(of, bt_sco_codec_of_match);
-- 
1.9.1

  parent reply	other threads:[~2016-06-13  7:26 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-13  7:26 [alsa-devel] [PATCH v4 0/9] ASoC: Mediatek: Add support for MT2701 SOC Garlic Tseng
2016-06-13  7:26 ` [alsa-devel] [PATCH v4 1/9] ASoC: mediatek: Refine mt8173 driver and change config option Garlic Tseng
2016-06-13  7:26 ` [alsa-devel] [PATCH v4 2/9] ASoC: mediatek: implement mediatek common structure Garlic Tseng
2016-06-29 19:16   ` Applied "ASoC: mediatek: implement mediatek common structure" to the asoc tree Mark Brown
2016-06-13  7:26 ` [alsa-devel] [PATCH v4 3/9] ASoC: mediatek: let mt8173 use mediatek common structure Garlic Tseng
2016-06-15 10:57   ` Yingjoe Chen
2016-06-16  1:40     ` Garlic Tseng
2016-06-13  7:26 ` [alsa-devel] [PATCH v4 4/9] ASoC: mediatek: add documents for mt2701 Garlic Tseng
2016-06-13  7:26 ` [alsa-devel] [PATCH v4 5/9] ASoC: mediatek: add structure define and clock control for 2701 Garlic Tseng
2016-06-13  7:26 ` [alsa-devel] [PATCH v4 6/9] ASoC: mediatek: add mt2701 platform driver implementation Garlic Tseng
2016-06-13  7:26 ` Garlic Tseng [this message]
2016-06-13  7:26 ` [alsa-devel] [PATCH v4 8/9] ASoC: mediatek: add BT implementation Garlic Tseng
2016-06-13  7:26 ` [alsa-devel] [PATCH v4 9/9] ASoC: mediatek: Add mt2701-cs42448 driver and config option Garlic Tseng
2016-06-15 10:58   ` Yingjoe Chen
2016-06-16  1:41     ` Garlic Tseng

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=1465802806-19197-8-git-send-email-garlic.tseng@mediatek.com \
    --to=garlic.tseng@mediatek.com \
    --cc=PC.Liao@mediatek.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=ir.lian@mediatek.com \
    --cc=koro.chen@mediatek.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=srv_heupstream@mediatek.com \
    --cc=tiwai@suse.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 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).