Merge remote-tracking branches 'asoc/topic/rt5651', 'asoc/topic/samsung', 'asoc/topic/sgtl5000', 'asoc/topic/sh', 'asoc/topic/simple', 'asoc/topic/sirf', 'asoc/topic/sta350' and 'asoc/topic/tlv320dac33' into asoc-next
This commit is contained in:

@@ -4613,7 +4613,9 @@ int snd_soc_of_parse_audio_routing(struct snd_soc_card *card,
|
||||
EXPORT_SYMBOL_GPL(snd_soc_of_parse_audio_routing);
|
||||
|
||||
unsigned int snd_soc_of_parse_daifmt(struct device_node *np,
|
||||
const char *prefix)
|
||||
const char *prefix,
|
||||
struct device_node **bitclkmaster,
|
||||
struct device_node **framemaster)
|
||||
{
|
||||
int ret, i;
|
||||
char prop[128];
|
||||
@@ -4696,9 +4698,13 @@ unsigned int snd_soc_of_parse_daifmt(struct device_node *np,
|
||||
*/
|
||||
snprintf(prop, sizeof(prop), "%sbitclock-master", prefix);
|
||||
bit = !!of_get_property(np, prop, NULL);
|
||||
if (bit && bitclkmaster)
|
||||
*bitclkmaster = of_parse_phandle(np, prop, 0);
|
||||
|
||||
snprintf(prop, sizeof(prop), "%sframe-master", prefix);
|
||||
frame = !!of_get_property(np, prop, NULL);
|
||||
if (frame && framemaster)
|
||||
*framemaster = of_parse_phandle(np, prop, 0);
|
||||
|
||||
switch ((bit << 4) + frame) {
|
||||
case 0x11:
|
||||
|
Reference in New Issue
Block a user