From: "Liao, Bard" <yung-chuan.liao@linux.intel.com>
To: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>,
Jack Yu <jack.yu@realtek.com>,
"broonie@kernel.org" <broonie@kernel.org>,
"lgirdwood@gmail.com" <lgirdwood@gmail.com>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
"lars@metafoo.de" <lars@metafoo.de>,
"Flove(HsinFu)" <flove@realtek.com>,
"Oder Chiou" <oder_chiou@realtek.com>,
"Shuming [范書銘]" <shumingf@realtek.com>,
"Derek [方德義]" <derek.fang@realtek.com>,
bard.liao@intel.com
Subject: Re: [PATCH v2] ASoC: rt721-sdca: Add RT721 SDCA driver
Date: Tue, 24 Sep 2024 22:03:13 +0800 [thread overview]
Message-ID: <2374fd94-de4d-4f15-87e7-51856ffdee2c@linux.intel.com> (raw)
In-Reply-To: <65339ec1-ee9d-40cb-acd2-b6cfa0445c7e@linux.intel.com>
On 9/24/2024 5:36 PM, Pierre-Louis Bossart wrote:
>
> On 9/24/24 11:03, Jack Yu wrote:
>> This is the initial codec driver for rt721-sdca.
> I wouldn't hurt to provide a short description. 722 has 3 functions,
> what about 721?
>
>
>> + case SDW_SDCA_CTL(FUNC_NUM_JACK_CODEC, RT721_SDCA_ENT_USER_FU05, RT721_SDCA_CTL_FU_VOLUME,
>> + CH_L):
>> + case SDW_SDCA_CTL(FUNC_NUM_JACK_CODEC, RT721_SDCA_ENT_USER_FU05, RT721_SDCA_CTL_FU_VOLUME,
>> + CH_R):
>> + case SDW_SDCA_CTL(FUNC_NUM_JACK_CODEC, RT721_SDCA_ENT_USER_FU0F, RT721_SDCA_CTL_FU_VOLUME,
>> + CH_L):
>> + case SDW_SDCA_CTL(FUNC_NUM_JACK_CODEC, RT721_SDCA_ENT_USER_FU0F, RT721_SDCA_CTL_FU_VOLUME,
>> + CH_R):
>> + case SDW_SDCA_CTL(FUNC_NUM_JACK_CODEC, RT721_SDCA_ENT_PLATFORM_FU44,
>> + RT721_SDCA_CTL_FU_CH_GAIN, CH_L):
>> + case SDW_SDCA_CTL(FUNC_NUM_JACK_CODEC, RT721_SDCA_ENT_PLATFORM_FU44,
>> + RT721_SDCA_CTL_FU_CH_GAIN, CH_R):
>> + case SDW_SDCA_CTL(FUNC_NUM_MIC_ARRAY, RT721_SDCA_ENT_USER_FU1E, RT721_SDCA_CTL_FU_VOLUME,
>> + CH_01):
>> + case SDW_SDCA_CTL(FUNC_NUM_MIC_ARRAY, RT721_SDCA_ENT_USER_FU1E, RT721_SDCA_CTL_FU_VOLUME,
>> + CH_02):
>> + case SDW_SDCA_CTL(FUNC_NUM_MIC_ARRAY, RT721_SDCA_ENT_USER_FU1E, RT721_SDCA_CTL_FU_VOLUME,
>> + CH_03):
>> + case SDW_SDCA_CTL(FUNC_NUM_MIC_ARRAY, RT721_SDCA_ENT_USER_FU1E, RT721_SDCA_CTL_FU_VOLUME,
>> + CH_04):
>> + case SDW_SDCA_CTL(FUNC_NUM_AMP, RT721_SDCA_ENT_USER_FU06, RT721_SDCA_CTL_FU_VOLUME, CH_L):
>> + case SDW_SDCA_CTL(FUNC_NUM_AMP, RT721_SDCA_ENT_USER_FU06, RT721_SDCA_CTL_FU_VOLUME, CH_R):
>> + return true;
> That tells us it has 3 functions (jack, mic, amp), so what's different
> to RT722? could we have a single driver for both parts? A lot of this
> driver seems copy-pasted-renamed.
>
>> +static int rt721_sdca_read_prop(struct sdw_slave *slave)
>> +{
>> + struct sdw_slave_prop *prop = &slave->prop;
>> + int nval;
>> + int i, j;
>> + u32 bit;
>> + unsigned long addr;
>> + struct sdw_dpn_prop *dpn;
>> +
>> + sdw_slave_read_prop(slave);
> I thought we agreed to use a helper to read only the number of lanes
> from platform firmware?
>
> Bard, did you share this already?
Not yet, that will be a part of multi-lane support.
prev parent reply other threads:[~2024-09-24 14:04 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-24 9:03 [PATCH v2] ASoC: rt721-sdca: Add RT721 SDCA driver Jack Yu
2024-09-24 9:36 ` Pierre-Louis Bossart
2024-09-24 11:54 ` Jack Yu
2024-09-24 12:11 ` Mark Brown
2024-09-24 15:26 ` Pierre-Louis Bossart
2024-09-25 4:03 ` Jack Yu
2024-09-25 4:07 ` Jack Yu
2024-09-24 14:03 ` Liao, Bard [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=2374fd94-de4d-4f15-87e7-51856ffdee2c@linux.intel.com \
--to=yung-chuan.liao@linux.intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=bard.liao@intel.com \
--cc=broonie@kernel.org \
--cc=derek.fang@realtek.com \
--cc=flove@realtek.com \
--cc=jack.yu@realtek.com \
--cc=lars@metafoo.de \
--cc=lgirdwood@gmail.com \
--cc=oder_chiou@realtek.com \
--cc=pierre-louis.bossart@linux.intel.com \
--cc=shumingf@realtek.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.