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


Groups > linux.kernel > #1713399

Re: [PATCH v2 1/3] ASoC: rockchip: Parse dai links from dts

From jeffy <jeffy.chen@rock-chips.com>
Newsgroups linux.kernel
Subject Re: [PATCH v2 1/3] ASoC: rockchip: Parse dai links from dts
Date 2017-08-17 01:00 +0200
Message-ID <uffs6-4CO-15@gated-at.bofh.it> (permalink)
References <ucNJE-Jv-5@gated-at.bofh.it> <ucNJE-Jv-11@gated-at.bofh.it> <ufew1-3ZQ-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


hi matthias,

thanks for your suggestion.

On 08/17/2017 05:59 AM, Matthias Kaehlcke wrote:
> El Thu, Aug 10, 2017 at 12:54:56PM +0800 Jeffy Chen ha dit:
>
>> >Refactor rockchip_sound_probe, parse dai links from dts instead of
>> >hard coding them.
> Mark doesn't seem to be overly convinced that 'rockchip,codec-names'
> is a good idea (https://lkml.org/lkml/2017/8/10/511).
>
> How about using something like this instead:
>
> static const char *dailink_compat[] = {
> 	[DAILINK_MAX98357A] = "maxim,max98357a",
> 	[DAILINK_RT5514] = "realtek,rt5514",
> 	[DAILINK_DA7219] = "dlg,da7219",
> };
i've thought about this too, but i'm working on converting rt5514 
dsp(spi) from codec name matching to of_node, and it would have the same 
compatible with rt5514(i2c)

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


Thread

Re: [PATCH v2 1/3] ASoC: rockchip: Parse dai links from dts Matthias Kaehlcke <mka@chromium.org> - 2017-08-17 00:00 +0200
  Re: [PATCH v2 1/3] ASoC: rockchip: Parse dai links from dts jeffy <jeffy.chen@rock-chips.com> - 2017-08-17 01:00 +0200
    Re: [PATCH v2 1/3] ASoC: rockchip: Parse dai links from dts Matthias Kaehlcke <mka@chromium.org> - 2017-08-17 02:00 +0200
      Re: [PATCH v2 1/3] ASoC: rockchip: Parse dai links from dts jeffy <jeffy.chen@rock-chips.com> - 2017-08-17 06:50 +0200

csiph-web