snd-ac97-codec: Add ID for TI TLV320AIC27 codec
PATCH 1/2 snd-ac97-codec: Add ID for TI TLV320AIC27 codec
Add 0x54584e03 ID for TI TLV320AIC27 AC'97 codec according to datasheet:
http://www.ti.com/lit/ds/slas253a/slas253a.pdf
The weird thing is that the chip is physically marked 320AD91.
Signed-off-by Ondrej Zary <[email protected]>
--- sound/pci/ac97/ac97_codec.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
sound/pci/ac97/ac97_codec.c +1 -0
@@ -175,6 +175,7 @@ static const struct ac97_codec_id snd_ac97_codec_ids[] = { { 0x54524106, 0xffffffff, "TR28026", NULL, NULL }, { 0x54524108, 0xffffffff, "TR28028", patch_tritech_tr28028, NULL }, // added by xin jin [07/09/99] { 0x54524123, 0xffffffff, "TR28602", NULL, NULL }, // only guess --jk [TR28023 = eMicro EM28023 (new CT1297)] +{ 0x54584e03, 0xffffffff, "TLV320AIC27", NULL, NULL }, { 0x54584e20, 0xffffffff, "TLC320AD9xC", NULL, NULL }, { 0x56494161, 0xffffffff, "VIA1612A", NULL, NULL }, // modified ICE1232 with S/PDIF { 0x56494170, 0xffffffff, "VIA1617A", patch_vt1617a, NULL }, // modified VT1616 with S/PDIF
Signature · 1 line
Ondrej Zary
PATCH 2/2 snd-ac97-codec: Use complete ID when the codec is not known
Currently, if the codec ID is not known, the last byte of the ID is used as name. It's not helpful at all, use full codec ID instead.
Signed-off-by Ondrej Zary <[email protected]>
--- sound/pci/ac97/ac97_codec.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
sound/pci/ac97/ac97_codec.c +1 -1
@@ -1830,7 +1830,7 @@ void snd_ac97_get_name(struct snd_ac97 *ac97, unsigned int id, char *name, int m pid->patch (ac97); } }else -sprintf (name +strlen (name)," id %x" , id &0xff ); +sprintf (name +strlen (name)," id %x" , id); }/**
Signature · 1 line
Ondrej Zary