diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2010-09-08 22:48:10 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-09-10 11:07:41 -0400 |
commit | 17731f8dffe7dc6fd0eb82018505a74907431699 (patch) | |
tree | 0830157255c296c377e0aafe315389ed2b435f48 /drivers/video/sh_mobile_hdmi.c | |
parent | dec6aa49abf73b061b631163cb1e1d803a614d24 (diff) |
fbdev: sh_mobile_hdmi: modify snd_soc_dai_driver settings
This patch solve below report from Guennadi
> +static struct snd_soc_dai_driver sh_hdmi_dai = {
> + .name = "sh_mobile_hdmi-hifi",
> + .playback = {
> + .stream_name = "Playback",
> + .channels_min = 1,
Can it actually do mono? Maybe at probe time you could look at audio flags
from your previous patch and, e.g., for SPDIF set channels_min to 2?
> + .channels_max = 2,
That's the "smallest max," yes. With some other interfaces (I2S, DSD) it
can support up to 8 channels...
> + .rates = SNDRV_PCM_RATE_8000_48000,
Hm, in the datasheet I see supported frequencies 32kHz to 192kHz. And if
you promise support for multiple frequencies, don't you want to implement
.hw_params? Besides, not all of these frequencies will be available,
depending on your supplied clock and your willingness to implement
downsampling.
Reported-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/video/sh_mobile_hdmi.c')
-rw-r--r-- | drivers/video/sh_mobile_hdmi.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/video/sh_mobile_hdmi.c b/drivers/video/sh_mobile_hdmi.c index beb04ef5fd0b..a2cb49254eb2 100644 --- a/drivers/video/sh_mobile_hdmi.c +++ b/drivers/video/sh_mobile_hdmi.c | |||
@@ -249,9 +249,12 @@ static struct snd_soc_dai_driver sh_hdmi_dai = { | |||
249 | .name = "sh_mobile_hdmi-hifi", | 249 | .name = "sh_mobile_hdmi-hifi", |
250 | .playback = { | 250 | .playback = { |
251 | .stream_name = "Playback", | 251 | .stream_name = "Playback", |
252 | .channels_min = 1, | 252 | .channels_min = 2, |
253 | .channels_max = 2, | 253 | .channels_max = 8, |
254 | .rates = SNDRV_PCM_RATE_8000_48000, | 254 | .rates = SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 | |
255 | SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_88200 | | ||
256 | SNDRV_PCM_RATE_96000 | SNDRV_PCM_RATE_176400 | | ||
257 | SNDRV_PCM_RATE_192000, | ||
255 | .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE, | 258 | .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE, |
256 | }, | 259 | }, |
257 | }; | 260 | }; |